The .NET Pipeline That Makes Source Generators Feel Instant

Deep dive into .NET source generators, and understand how to design efficient pipelines that minimize recompilation and boost codegen performance.

Deep dive into .NET source generators, and understand how to design efficient pipelines that minimize recompilation and boost codegen performance.

In this post, I'll show you what Roslyn source generators are, why they're a massive improvement over old techniques, and how to build a simple, high-performance generator from scratch.

How to unit test HTTP clients in .NET without relying on mocking frameworks (Moq or NSubstitute) using DelegatingHandler.

Learn how to implement Server-Sent Events (SSE) in ASP.NET Core. Compare SSE vs WebSockets & SignalR, and apply scaling best practices.

Master offset, cursor, keyset, paged, time-based, and hybrid pagination patterns in .NET APIs to balance performance, consistency, and client experience.

.NET 10 GC tuning shows how stack allocations, DATAS, and region sizing cut allocations, improve latency, and reduce your cloud cost.

Build conditional, parallel, dynamic, and stateful prompt pipelines in .NET with safety guardrails, faster latency, and testable design.

Build robust AI multi-tool workflows in .NET. Chain tools, add telemetry, cache results, and orchestrate multi‑step tasks with DI.

Resilient .NET AI pipeline: unify chat, embeddings, tools, streaming, caching & telemetry with Microsoft.Extensions.AI. Swap models without rewrites.

Model-agnostic guide to integrating LLMs in .NET — patterns, DI, provider abstraction, and security best practices. Start locally; avoid vendor lock-in.