Streaming Responses for LLMs: Implementing Server-Sent Events

Streaming LLM responses dramatically improves user experience. After implementing streaming for 20+ LLM applications, I’ve learned what works. Here’s the complete guide to implementing Server-Sent Events for LLM streaming. Figure 1: Streaming Architecture Why Streaming Matters Streaming LLM responses provides significant benefits: Perceived performance: Users see results immediately, not after 10+ seconds Better UX: Progressive […]

Read more →

Event Sourcing Fundamentals: Storing Events Instead of State

Event Sourcing flips traditional database design on its head. Instead of storing current state, you store the events that led to that state. It’s not for every project, but when it fits, it’s powerful. The Concept In a typical system, you update records in place. An order goes from “pending” to “shipped” by updating a […]

Read more →

ASP.NET Page Life-Cycle Events

Since the beginning days i was working on with ASP.NET 1.1, quite familiar with the life-cycle events within the ASP.NET 1.1. But still it will be difficult to remember everything, when we are asked unexpectedly, since my memory management is poorer. :-). Recently in one interview, while doing the management round interview discussion, i have […]

Read more →

ASP.NET Core 10: Minimal API Validation, OpenAPI 3.1 YAML, and Blazor Prefetching

ASP.NET Core 10, released as part of .NET 10 LTS, delivers significant improvements for web API developers. The headline features—native Minimal API validation, OpenAPI 3.1 with YAML export, and Blazor WebAssembly prefetching—address common production pain points. This comprehensive guide explores each feature with production-ready patterns, migration strategies, and performance considerations for enterprise web applications. What’s […]

Read more →