Search Sreeni's Insights

Filter by content type
Tag

#dotnet

55 articles tagged with #dotnet

technical September 11, 2018 11 min read

What is event sourcing? - Part 7

Event sourcing with fund reference data: event streams, appending with expected version, projections, rebuilding views from scratch and the trade-offs.

#enterprise-integration #event-sourcing #cqrs
Read
technical August 28, 2018 11 min read

What is event-driven architecture? - Part 6

Event-driven architecture with a mutual fund data pipeline in .NET: event contracts, publishing, subscription filters, consumers and the trade-offs.

#enterprise-integration #event-driven-architecture #azure-service-bus
Read
technical July 31, 2018 16 min read

How do messages flow from producer to consumer? - Part 4

How messages flow from producer to consumer: channel adapters, claim check, routers, dispatchers, polling and competing consumers, and ordering.

#enterprise-integration #messaging #azure-service-bus
Read
technical July 17, 2018 18 min read

What are messages, commands and events? - Part 3

Messages, envelopes, commands and events, producers and consumers, channels, queues, topics, brokers and buses, explained with a postal-service model.

#enterprise-integration #messaging #azure-service-bus
Read
crafting February 6, 2018 4 min read

How to unit test Entity Framework Core?

Unit test code that uses Entity Framework Core with test doubles for DbContext and DbSet, so the tests stay fast and focused on the system under test.

#coding-practices #dotnet #entity-framework-core
Read
crafting December 5, 2017 8 min read

Secure coding basics - OWASP Top 10 (2017) for .NET developers

OWASP Top 10 2017 risks are translated into practical .NET safeguards for injection, authentication, access control, XSS, deserialization, dependencies and logging.

#coding-practices #dotnet #software-quality
Read
crafting October 3, 2017 8 min read

Resilient HTTP calls with Polly - retry, timeout and circuit breaker

Polly 5.x adds retry, timeout and circuit breaker policies around HTTP calls, with guidance on composition, transient failures, idempotency and safe handling of writes.

#coding-practices #dotnet #software-quality
Read
crafting September 5, 2017 8 min read

Structured logging with Serilog - why plain text logs are not enough

Structured logging with Serilog replaces ambiguous text with searchable properties, consistent message templates, correlation context and safer ASP.NET Core operations.

#coding-practices #dotnet #software-quality
Read
cloud August 29, 2017 6 min read

How to share code with .NET Standard 2.0 libraries?

.NET Standard 2.0 libraries allow shared business rules across applications, and this guide covers project setup, API compatibility, package versioning and practical testing.

#azure #cloud #cloud-architecture
Read
cloud August 22, 2017 7 min read

How to upgrade from .NET Core 1.x to 2.0?

This guide upgrades an application from .NET Core 1.x to 2.0, covering project files, package changes, tooling, API updates and a controlled path to ASP.NET Core 2.0.

#azure #cloud #cloud-architecture
Read
crafting May 2, 2017 7 min read

How to test ASP.NET Core Web API with in-memory TestServer?

This guide tests an ASP.NET Core Web API with an in-memory TestServer, covering host setup, HTTP requests, dependency boundaries and fast feedback without a deployed service.

#coding-practices #dotnet #software-quality
Read
crafting April 4, 2017 7 min read

Integration tests vs unit tests - where to draw the line

Unit and integration tests serve different boundaries, feedback loops and maintenance costs, with practical guidance for choosing test types and organising a .NET solution.

#coding-practices #dotnet #software-quality
Read
crafting March 7, 2017 8 min read

Remove dead code - why and how to find it safely

Dead code increases cognitive load and deployment risk, so this guide explains how to find candidates, confirm they are unused and remove them safely with history as a backup.

#coding-practices #dotnet #software-quality
Read
crafting February 7, 2017 8 min read

Avoid sequential coupling and circular dependencies - with examples

Sequential coupling and circular dependencies create hidden constraints, so constructor injection, builders, interfaces and events make code easier to test, change and evolve.

#coding-practices #dotnet #software-quality
Read
technical December 1, 2016 7 min read

Event Sourcing - storing the history, not just the state

Event Sourcing explained through state versus event history, commands, aggregates, append-only stores, projections, snapshots and versioned events for practical guidance.

#event-sourcing #software-architecture #domain-driven-design
Read
crafting November 15, 2016 7 min read

Static code analysis with StyleCop, FxCop and ReSharper

Static code analysis explained through StyleCop, FxCop, ReSharper, rule sets, IDE checks, local builds, CI integration and gradual warning reduction.

#static-analysis #coding-practices #stylecop
Read
technical November 10, 2016 7 min read

Twelve-Factor App - what it means for .NET teams

The Twelve-Factor App principles interpreted for .NET teams through codebases, configuration, backing services, processes, logs, deployments and Azure operations for practical guidance.

#twelve-factor #software-architecture #dotnet
Read
cloud October 25, 2016 7 min read

How to use Azure DocumentDB from .NET?

Azure DocumentDB explained through collections, partition keys, Request Units, consistency levels and .NET operations for creating, querying and updating documents.

#documentdb #azure #dotnet
Read
cloud September 27, 2016 6 min read

How to set up Azure Application Insights for an ASP.NET application?

Azure Application Insights explained through server and browser telemetry, custom events, dependencies, alerts, availability tests and ASP.NET application monitoring.

#application-insights #azure #cloud-how-to
Read
crafting September 20, 2016 7 min read

Semantic versioning for NuGet packages and APIs

Semantic versioning explained through major, minor and patch changes, pre-release labels, package compatibility, API versions and communication with consumers for practical guidance.

#semantic-versioning #nuget #coding-practices
Read
cloud August 30, 2016 7 min read

How to create your first Azure Function?

Creating an Azure Function explained through preview-era triggers, bindings, hosting plans, timer and HTTP functions, deployment and retry-safe execution for practical guidance.

#azure-functions #azure #cloud-how-to
Read
crafting August 23, 2016 6 min read

Feature toggles - shipping unfinished code safely

Feature toggles explained through release control, toggle types, configuration, rollout, cleanup and practices for shipping unfinished code without accumulating debt.

#feature-toggles #coding-practices #release-management
Read
cloud August 2, 2016 6 min read

How to build a Docker image for an ASP.NET Core application?

Building a Docker image for ASP.NET Core explained through Dockerfiles, SDK and runtime images, build commands, containers, configuration and deployment practices.

#docker #aspnet-core #cloud-how-to
Read
crafting July 26, 2016 7 min read

Logging best practices - what to log, what not to log

Logging best practices explained through operational value, useful fields, sensitive data, correlation, structured logging, retention and practical logging pipelines for practical guidance.

#logging #coding-practices #dotnet
Read
technical July 21, 2016 7 min read

Microservices - Part 2

Microservices Part 2 compares synchronous HTTP and asynchronous messaging through timeouts, retries, Service Bus, duplicate handling and eventual consistency for practical guidance.

#microservices #software-architecture #asynchronous
Read
cloud July 19, 2016 7 min read

How to migrate an ASP.NET MVC 5 app to ASP.NET Core 1.0?

Migrating an ASP.NET MVC 5 application to ASP.NET Core 1.0 explained through project structure, middleware, dependency injection, configuration, routing and migration risks.

#aspnet-mvc #aspnet-core #dotnet
Read
crafting July 5, 2016 6 min read

How to write maintainable LINQ and Entity Framework queries?

Maintainable LINQ and Entity Framework queries explained through in-memory filtering, N+1 queries, projection, tracking and practices for readable query code.

#linq #entity-framework #coding-practices
Read
technical June 23, 2016 7 min read

Microservices - Part 1

Microservices Part 1 explains Conway's Law, modular monoliths, service ownership, distributed data, deployment independence and the hidden costs of service boundaries.

#microservices #software-architecture #distributed-systems
Read
cloud March 29, 2016 7 min read

How we simplified one of the complex filter pages with Azure Search?

An Azure Search case study showing how a complex filter page moved from dynamic SQL and slow queries to a derived search index and faster filtering.

#azure-search #azure #case-study
Read
crafting March 15, 2016 7 min read

Defensive coding - guard clauses and null checks without the noise

Defensive coding explained through guard clauses, boundary validation, specific exceptions, null checks, empty collections and clearer .NET application logic for practical guidance.

#defensive-coding #guard-clauses #coding-practices
Read
crafting February 2, 2016 7 min read

What is a Test Double - stub vs mock vs fake

Test doubles explained through dummy, stub, spy, mock and fake objects, with practical examples showing when stubs, mocks and fakes are appropriate.

#test-doubles #mocking #unit-testing
Read
crafting January 12, 2016 7 min read

Unit Test Best Practices - FIRST properties

FIRST properties explained through fast, independent, repeatable, self-validating and timely unit tests, with practical guidance for keeping a test suite healthy.

#unit-testing #first #testing
Read
cloud December 15, 2015 7 min read

Getting started with Docker - Part 1

Getting started with Docker through images, containers, Docker Toolbox, Docker Machine, host addresses, and basic Docker 1.x commands for practical first steps.

#docker #containers #cloud-how-to
Read
cloud November 10, 2015 7 min read

How to set up continuous integration with Visual Studio Online?

Continuous integration with Visual Studio Online explained through vNext builds, package restoration, compilation, tests, and publishing validated artifacts for reliable delivery.

#continuous-integration #visual-studio-online #cloud-how-to
Read
cloud October 13, 2015 7 min read

How to document ASP.NET Web API with Swagger?

Documenting ASP.NET Web API 2 with Swagger and Swashbuckle, XML comments, response contracts, and Swagger UI for an explicit API contract.

#swagger #swashbuckle #web-api
Read
cloud September 29, 2015 7 min read

How to send and receive messages with Azure Service Bus queues?

Azure Service Bus queues explained through asynchronous work, queue creation, BrokeredMessage handling, workers, completion, and dead-letter messages for reliable background work.

#azure #azure-service-bus #message-queues
Read
cloud September 15, 2015 7 min read

How to store files in Azure Blob Storage from ASP.NET?

Storing files in Azure Blob Storage from ASP.NET, including containers, validation, uploads, private file serving, and separating file metadata.

#azure #azure-blob-storage #aspnet
Read
cloud August 4, 2015 7 min read

How to deploy an ASP.NET MVC application to Azure App Service?

Deploying an ASP.NET MVC 5 application to Azure App Service, from creating the web app and publishing with Visual Studio through validation and configuration.

#azure #azure-app-service #aspnet-mvc
Read
crafting July 21, 2015 7 min read

Async and await in C# - common mistakes

Async and await explained for web applications, including I/O-bound work, async void, blocking calls, deadlocks, ConfigureAwait, fake async, and sequential awaits.

#async-await #csharp #dotnet
Read
crafting June 9, 2015 7 min read

How to do TDD (Test-Driven Development)?

Test-Driven Development explained through the Red-Green-Refactor cycle and a step-by-step fund-universe example built with tests first for practical development and design.

#tdd #test-driven-development #coding-practices
Read
technical June 4, 2015 7 min read

What is CQRS - separating reads and writes, and when not to use it?

CQRS explained through commands, handlers, queries, read models, eventual consistency, and the situations where separating reads and writes is unnecessary.

#cqrs #software-architecture #architecture
Read
crafting April 28, 2015 7 min read

Exception handling best practices in .NET

Exception handling practices for .NET, ASP.NET MVC, and Web API covering swallowed exceptions, stack traces, specific catches, and global error handling.

#exception-handling #dotnet #aspnet
Read
technical April 23, 2015 7 min read

Monolith vs Microservices - should we start with microservices?

Monoliths and microservices compared through modular boundaries, extraction signals, scaling, team ownership, distributed failure, and practical starting criteria for growing teams.

#monolith #microservices #software-architecture
Read
crafting April 14, 2015 6 min read

Code review checklist for .NET teams

A practical .NET code review checklist covering design, readability, correctness, errors, security, performance, testing, operations, and constructive review comments and discussion.

#code-review #dotnet #coding-practices
Read
technical April 2, 2015 6 min read

What is RESTful API - resources, verbs and status codes?

RESTful API design explained through resources, HTTP verbs, safety, idempotence, Web API 2 controllers, and status codes using a news article example.

#rest #web-api #http
Read
crafting March 31, 2015 7 min read

How to write unit tests with NUnit and Moq?

Unit testing with NUnit and Moq explained through FIRST properties, the AAA pattern, test doubles, test cases, exceptions, and verification of interactions.

#unit-testing #nunit #moq
Read
crafting March 17, 2015 6 min read

What is a God object and how to break it?

God objects explained through their warning signs, causes, and a step-by-step refactoring approach using characterization tests, extraction, interfaces, and dependency injection.

#god-object #refactoring #coding-practices
Read
technical March 12, 2015 7 min read

Repository and Unit of Work patterns with Entity Framework - help or overhead?

Repository and Unit of Work patterns examined with Entity Framework 6, including generic repositories, focused interfaces, persistence leakage, and transaction boundaries.

#repository-pattern #unit-of-work #entity-framework
Read
crafting March 3, 2015 6 min read

Why we must not use magic numbers and hard-coding?

Magic numbers and hard-coded values explained with their maintenance and security risks, plus practical replacements using constants, enums, configuration, and read-only values.

#magic-numbers #hard-coding #coding-practices
Read
technical February 19, 2015 7 min read

Onion architecture vs N-Tier - which one to choose?

Onion architecture and N-Tier compared through dependency direction, project structure, domain boundaries, dependency injection, and criteria for choosing between them.

#onion-architecture #n-tier #software-architecture
Read
crafting February 17, 2015 7 min read

How to use Dependency Injection with an IoC container in ASP.NET MVC?

Dependency Injection and IoC containers explained through Unity and Autofac setup in ASP.NET MVC 5, including object lifetimes and practical container wiring.

#dependency-injection #ioc #aspnet-mvc
Read
crafting February 3, 2015 6 min read

SOLID Principles - Part 2

The remaining SOLID principles, Liskov Substitution, Interface Segregation and Dependency Inversion, explained with practical examples from a fund domain and practical guidance.

#solid #lsp #isp
Read
technical January 29, 2015 7 min read

What is N-Tier architecture and where does it fail?

N-Tier architecture explained through layer responsibilities, logical boundaries, shared databases, pass-through layers, and failure modes that make maintenance difficult in practice.

#n-tier #software-architecture #architecture
Read
crafting January 20, 2015 7 min read

SOLID Principles - Part 1

The first two SOLID principles, Single Responsibility and Open/Closed, explained with fund report and fee calculation examples in C#, plus when not to apply them.

#solid #srp #ocp
Read
crafting January 6, 2015 6 min read

Why we need Clean Code?

Why clean code matters, what makes code clean (meaningful names, small functions, guard clauses, comments that explain why) and how to bring the practice into your team.

#clean-code #coding-practices #csharp
Read

Browse Other Tags

#abstraction #aggregates #ai #ai-assisted-development #aks #algorithms #angular #angular-2 #angularjs #api #api-design #api-documentation #api-gateway #api-management #api-testing #api-versioning #apis #apm #app-service #application-insights #application-monitoring #architecture #architecture-decision-records #arm-templates #asp-net-mvc #aspnet #aspnet-core #aspnet-mvc #async-await #asynchronous #authentication #authorization #automation #azure #azure-app-service #azure-blob-storage #azure-cdn #azure-devops #azure-front-door #azure-functions #azure-key-vault #azure-monitor #azure-redis-cache #azure-resource-manager #azure-search #azure-service-bus #azure-sql #azure-web-app #azure-web-apps #backup #beginners #best-practices #binary #bounded-context #branching #branching-strategy #build-automation #burnout #business-case #caching #career #case-study #cdn #ci-cd #classification #clean-code #cloud #cloud-architecture #cloud-how-to #cloud-migration #cloud-native #cloud-readiness #cloud-security #cloud-solution-architecture #cloud-strategy #cloud-value #cloudflare #cloudflare-workers #code-quality #code-review #coding-practices #communication #compilers #composition #comprehension-debt #computational-thinking #computer-architecture #computer-basics #concurrency #configuration #container-service #containers #context-debt #continuous-integration #contract-testing #conventions #conway-law #cosmos-db #cqrs #csharp #data-access #data-architecture #data-representation #data-structures #datacenter-exit #ddd #defensive-coding #dependencies #dependency-injection #deployment #deployment-slots #design #design-patterns #design-principles #devops #dip #disaster-recovery #distributed-systems #distributed-transactions #dns #docker #docker-compose #documentation-debt #documentdb #domain-driven-design #domain-model #dotcover #dotnet #edge-computing #ef-core #encapsulation #engineering #engineering-practice #engineering-practices #enterprise-architecture #enterprise-integration #entity-framework #entity-framework-core #error-handling #event-driven #event-driven-architecture #event-grid #event-sourcing #events #eventual-consistency #exception-handling #failover #feature-toggles #feedback #finops #first #framework #frontend #frontend-architecture #future-state-architecture #fxcop #git #git-flow #github-flow #god-object #governance #growth #guard-clauses #guardrails #guidelines #hard-coding #helm #high-availability #hosting #http #iaas #idempotency #identity #information-hiding #infrastructure-as-code #inheritance #integration #ioc #isp #java #javascript #json-schema #jwt #key-vault #knowledge-management #kubernetes #language-generations #layered-architecture #leadership #least-privilege #lift-and-shift #linq #logging #logic-apps #lsp #magic-numbers #maintainability #maintainable-code #managed-service-identity #message-queues #messaging #metrics #microservices #migration #mocking #model-dependency-debt #modeling #monitoring #monolith #moq #multi-region #mvc-4 #n-tier #network-security-groups #networking #new-relic #nodejs #nosql #nuget #nunit #oauth #oauth-2 #object-modeling #object-oriented-thinking #object-relationships #observability #ocp #onion-architecture #oop #openid-connect #operating-systems #owin #paas #packages #pact #performance #pipelines #planning #polyglot-persistence #polymorphism #postman #powershell #problem-solving #process #productivity #programming-fundamentals #programming-languages #programming-paradigms #prompt-debt #prompt-engineering #pseudocode #pull-requests #react #real-world-modeling #real-world-problems #redis #refactoring #rehosting #release-management #repository-pattern #resharper #resilience #resiliency #rest #rest-api #rest-assured #retries #rpo #rto #saga #scalability #search #secrets #secure-coding #security #semantic-versioning #sentry #seq #serilog #serverless #service-bus #service-design #service-fabric #skill-debt #sla #software-architecture #software-basics #software-design #software-engineering #software-quality #solid #spa #sre #srp #ssl #static-analysis #storage #strangler-pattern #structured-logging #stylecop #substitutability #swagger #swashbuckle #system-design #tdd #tech-radar #technical-debt #technology-governance #terraform #test-doubles #test-driven-development #testing #thinking-like-a-programmer #traffic-manager #triggers #tutorial #twelve-factor #typescript #uml #understanding-computers-and-programming #unit-of-work #unit-testing #verification-debt #version-control #versioning #visual-studio #visual-studio-online #vsts #web-api #web-architecture #web-development #workflow