Explore the newsletters

136 blogs found
.NET Aspire Integration Testing Best Practices for Distributed Applications

.NET Aspire Integration Testing Best Practices for Distributed Applications

Learn 7 best practices for writing integration tests in .NET Aspire apps and distributed microservices. Replace WebApplicationFactory and TestContainers with DistributedApplicationTestingBuilder, handle multi-service testing, database cleanup, and common pitfalls. Testing microservices that use PostgreSQL, Redis and call another service via REST HTTP.

Building Event-Driven Microservices with Azure Service Bus in .NET

Building Event-Driven Microservices with Azure Service Bus in .NET

Learn how to create an Azure Service Bus in the Azure Portal, create queues, topics, and subscriptions. How to use Azure Service Bus with .NET Aspire and deploy to Azure. How to use Azure Service Bus Emulator with Aspire locally. How to publish and consume messages with Azure Service Bus in event-driven microservices. When to use Azure Service Bus, Azure Event Hubs and Azure Event Grid.

ASP.NET Core Output Cache: How to Speed Up Your API with In-Memory Cache and Redis

ASP.NET Core Output Cache: How to Speed Up Your API with In-Memory Cache and Redis

Learn how to use Output Cache in ASP.NET Core using IMemoryCache, IDistributedCache, and Redis. This guide covers Output Cache setup in ASP.NET Core, expiration time, cache policies, VaryByHeader, VaryByQuery, VaryByRouteValue, VaryByValue, tag-based cache eviction, cache eviction based on entity and authenticated user, and how to handle caching safely in authenticated APIs.

Entity Framework Extensions Options Explained: Everything You Can Customize

Entity Framework Extensions Options Explained: Everything You Can Customize

Explore Entity Framework Extensions options: BulkInsert, InsertIfNotExists, InsertKeepIdentity, AutoMapOutputDirection, IncludeGraph, AutoTruncate, batch settings, primary key configuration, column input/output/ignore, coalesce, conditional updates, audit, logging, and provider-specific settings for optimized bulk operations.

Querying and Performing Transactions Across Multiple Database Schemas in a Modular Monolith

Querying and Performing Transactions Across Multiple Database Schemas in a Modular Monolith

Query data across schemas in .NET Modular Monolith without breaking module boundaries. Explore 5 proven approaches: inter-module APIs, domain events with eventual consistency, database views, BFF pattern with YARP, and reporting modules. Master cross-module transactions with EF Core and consistency strategies for .NET applications with practical code examples.

YARP as API Gateway in .NET: 7 Real-World Scenarios You Should Know

YARP as API Gateway in .NET: 7 Real-World Scenarios You Should Know

Master YARP as an API Gateway for your .NET microservices. This guide covers routing, load balancing, centralized security and authentication, path rewriting, Backend-for-Frontend (BFF) patterns, rate limiting, logging with Serilog, observability with OpenTelemetry, with practical C# examples and appsettings.json configurations.

How to Avoid Code Duplication in Vertical Slice Architecture in .NET

How to Avoid Code Duplication in Vertical Slice Architecture in .NET

Learn how to manage code duplication in Vertical Slice Architecture with .NET. Discover when to share vs duplicate code, extract infrastructure concerns, push business logic into domain models, share application concerns and use practical patterns with .NET and EF Core examples. Learn when duplication is better than DRY.

How to Set Up Production-Ready Monitoring With ASP.NET Core Health Checks

How to Set Up Production-Ready Monitoring With ASP.NET Core Health Checks

Learn how to build a production-ready monitoring system using ASP.NET Core Health Checks. This guide covers adding health checks for Postgres, Redis, MongoDB, and MassTransit (RabbitMQ), creating custom checkers, creating custom JSON response formatter for health checks, implementing a custom health check publisher, and setting up a professional Health Checks UI.

How to Start a New .NET Project in 2026

How to Start a New .NET Project in 2026

Learn how to set up a new .NET project in 2026 with best practices including Directory.Build.props, static code analysis, .editorconfig, Central Package Management, .NET Aspire, OpenTelemetry, and GitHub Actions for production-ready applications. Get a ready project .NET backend template.

Improve Your .NET and Architecture Skills

Join my community of 25,000+ developers and architects.

Each week you will get 1 practical tip with best practices and real-world examples.

Learn how to craft better software with source code available for my newsletter.

Join 25,000+ developers already reading
No spam. Unsubscribe any time.