Explore the newsletters

129 blogs found
New Features in .NET 11 Preview 3

New Features in .NET 11 Preview 3

Explore what's new in .NET 11 Preview 3: C# 15 union types (discriminated unions), closed hierarchies, closed enums, collection expression arguments, Runtime Async V2 with cleaner stack traces, file-based apps multiple file support with file include, System.Text.Json PascalCase naming and ignore defaults, EF Core 11 updates (RemoveDbContext, pooled factories, ExcludeForeignKeyFromMigrations), and cryptographically signed container images.

Synchronous vs Asynchronous Communication in Microservices: How to Choose the Right Approach

Synchronous vs Asynchronous Communication in Microservices: How to Choose the Right Approach

Learn when to use synchronous (HTTP, gRPC, GraphQL) and asynchronous (RabbitMQ, Kafka, Azure Service Bus, Azure Event Hubs) communication in microservices. Point-to-point vs. publish/subscribe integration pattern for asynchronous communication. How to use a hybrid approach and combine synchronous and asynchronous communication. a real-world decision checklist when deciding what type of communication to use.

.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.

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.