DbContext is Not Thread-Safe: Parallelizing EF Core Queries the Right Way
Learn how to safely parallelize EF Core queries to improve performance by using IDbContextFactory to create isolated contexts, avoiding the thread-saf...
Page 6 of 23. Practical .NET and software architecture lessons.
Learn how to safely parallelize EF Core queries to improve performance by using IDbContextFactory to create isolated contexts, avoiding the thread-saf...
Deciding where shared logic lives is the most critical moment in Vertical Slice Architecture adoption, because choosing wrong reintroduces the couplin...
Coupling isn't just about code structure; it's about failure boundaries. Discover how to ensure your critical business logic survives when external de...
With .NET 10, Microsoft introduced file-based apps, which give you the ability to write C# code in a single .cs file and run it directly, without any ...
Distributed systems don't fail cleanly: they retry, duplicate, and occasionally fail. Here's how to design resilient message handlers in .NET with bro...
.NET 10 finally adds proper LeftJoin and RightJoin methods to LINQ, replacing the complex GroupJoin + DefaultIfEmpty pattern with clean, readable code...
Discover how a simple interview question about report generation reveals the difference between optimizing code and designing scalable systems, and wh...
Learn how to properly set up a new .NET project with EditorConfig for code consistency, Directory.Build.props for centralized configuration, central p...
Learn how to deploy ASP.NET Core Minimal APIs to AWS Lambda with just one library and a single line of code. We'll explore the setup process, measure ...
Learn how to use PostgreSQL stored procedures and functions with EF Core to handle complex queries, atomic operations with locking, and database-speci...
Join 66,000+ readers of The .NET Weekly for practical tips and resources to improve your .NET and software architecture skills.