Home Archive Issue #594
Issue #594

CQRS, ArrayPool and C# Switch Safety

Explore one-database CQRS with EF Core, pooled arrays for fewer allocations, compiler warnings for switch expressions, and a runnable architecture lab.

Jasen's top three picks

  1. 1
    CQRS in ASP.NET Core: Why I Prefer Starting with One Database Instead of Two

    C# Corner

    Learn how to implement CQRS in ASP.NET Core with separate command and query models while using one EF Core and SQL Server database.

  2. 2
    ArrayPool in C#: Reducing Allocations Without Writing Unsafe Code

    Medium

    Every time we create an array in C#, we allocate memory. For example:

  3. 3
    Clean Architecture, DDD, CQRS and Microservices in One Runnable .NET Lab

    Medium

    A small C# system you can clone, run with dotnet run, and read in an afternoon. No database, no broker, no Docker.

Editor's note

I picked a varied mix of C# and architecture reads today. The single-database CQRS walkthrough offers a manageable starting point, while the ArrayPool article looks at reducing allocations without unsafe code.

Today's articles

Related issues

📬 Save the search. Get the .NET stories worth reading at 7 AM ET.