High-performance distributed caching with .NET

#606 – May 03, 2026

when the in-memory cache expires the database cache keeps things fast

High-performance distributed caching with .NET
15 minutes by Jared Meade

Jared's guide walks through building a .NET console app with a two-layer caching setup using HybridCache and PostgreSQL. Slow external data calls that take seconds are replaced with responses returning in under a millisecond from memory, or in a fraction of a second from the database cache. When the in-memory cache expires, the database cache keeps things fast, and only after both expire does the app fetch fresh data from the source.

Find UI freezes before your users do
sponsored by Jetbrains

Don’t let hidden bottlenecks make it to production. The Monitoring tool window in JetBrains Rider shows real-time CPU, GC, and memory data in interactive charts. Built-in detectors quickly flag UI freezes, hotspots, and GC spikes, then take you right to the code with one click. Fix performance issues faster. Try Rider today.

Anti-corruption layer in .NET: Protecting your domain from external APIs
9 minutes by Adrian Bailador

Adrian explains the Anti-Corruption Layer pattern in .NET, which protects your domain from being polluted by external APIs. He shows how to isolate and translate external models into your own domain language, keeping business logic clean. By using an Anti-Corruption Layer, changes in external systems only affect one layer, making your application easier to maintain, understand, and extend.

Explore union types in C# 15
7 minutes by Bill Wagner

C# 15 adds union types, letting you declare a value as exactly one of a fixed set of types. The compiler enforces exhaustive pattern matching, so missing cases cause warnings at build time rather than failures at runtime. Types in a union do not need to share a common ancestor. The feature is available now in .NET 11 Preview 2 with language version set to preview.

ASP.NET Core cookie size limits in production: Causes and fixes
10 minutes by Khalid Abuhakmeh

Khalid argues that authentication can fail in production due to oversized cookies. ASP.NET Core stores user claims in cookies, which can grow too large from many claims, tokens, or multiple schemes. This causes silent login failures or HTTP 431 errors. Solutions include reducing claims, disabling token storage, clearing old cookies, or using server-side sessions. The best approach is minimizing cookie data and loading user information on demand.

Build your own CQRS dispatcher in .NET 10
24 minutes by Mukesh Murugan

MediatR went commercial in July 2025, pushing many teams to find alternatives. In this article, Mukesh built a custom CQRS dispatcher in .NET 10 that replaces MediatR with about 100 lines of code, supports the same pipeline behavior pattern, returns ValueTask for fewer allocations, and benchmarks 4.4x faster than MediatR 12.4.1 on real BenchmarkDotNet runs.

And the most popular article from the last issue was:

newsletters