|
|
Real-Time at Last: SSE and SignalR in ASP.NET Core |
|
In Part 1, we walked through the pre-real-time era of server status updates: full page refresh, XMLHttpRequest, Ajax and fetch(), and short/long polling. What all of that machinery was really reaching for is a way for the server to simply tell the client when something happens, the moment it happens. That's what this post covers: Server-Sent Events (SSE) and SignalR, the two mainstream ways to get genuine server push in ASP.NET Core. |
|
Posted On : 23 Sep 2026 |
|
|
From Page Refresh to fetch(): The Pre-Real-Time Era of Status Updates in ASP.NET Core |
|
Almost every non-trivial web application eventually needs to answer a simple question: something is processing on the server, and the user needs to know when it's finished (or how far along it is). Generating a large report. Processing an uploaded video. Running a batch import. Training a model. Provisioning a resource. These operations may take longer than you want a single HTTP request to remain open, so the browser can't just wait around for a response — the user needs a way to check back in. |
|
Posted On : 16 Sep 2026 |
|
|
When Design Patterns Become Rituals |
|
There is a peculiar phenomenon that happens in software teams after they reach a certain size or maturity. Design patterns — those hard-won abstractions distilled from decades of engineering experience — quietly shift from being deliberate solutions to being unconscious habits. Nobody decides to stop thinking. |
|
Posted On : 27 May 2026 |
|
|
Strategy Pattern: Choosing Without Attachment |
|
Every application reaches a point where it must make a choice. How should a list be sorted? How should a payment be processed? Which discount should be applied? How should a user be authenticated? These decisions often begin innocently, expressed through a few if statements or a growing switch block. Over time, however, these branches accumulate. What starts as a simple method becomes a dense cluster of conditions, each representing a slightly different way of doing the same thing. |
|
Posted On : 20 May 2026 |
|
|
The Observer Pattern in .NET — Events, Streams, and Awareness |
|
In software systems, state changes constantly—but the real challenge lies in propagating those changes to the right parts of the system without creating tight coupling. The Observer Pattern addresses this directly. It defines a one-to-many relationship where a subject notifies its observers when its state changes, without knowing who those observers are or what they do. This is not just about decoupling—it is about controlled awareness. The subject emits signals; observers decide how to react. |
|
Posted On : 04 May 2026 |
|
|
ASP.NET, Factory Patterns, and the Illusion of Control |
|
In the world of ASP.NET and .NET, there is a quiet but persistent instinct: the desire to control how things come into existence. Object creation, in particular, feels like something that must be carefully managed. If we explicitly construct our dependencies, we believe we understand the system better. If we centralize that construction, we believe we control it. |
|
Posted On : 27 Apr 2026 |
|
|
Dependency Injection as a Practice of Surrender |
|
In the early stages of a developer’s journey, there is a natural inclination toward control. We construct our dependencies explicitly, wire objects together manually, and take comfort in knowing exactly how each piece comes into existence. |
|
Posted On : 20 Apr 2026 |
|
|
Abstractions That Heal, Abstractions That Harm |
|
Every non-trivial software system rests on a foundation of abstractions. In the world of .NET and ASP.NET, abstractions are not merely language features or framework conveniences—they are the primary means by which complexity is managed, collaboration is enabled, and intent is expressed. |
|
Posted On : 13 Apr 2026 |
|
|
Clarity as a Design Virtue in .NET Systems |
|
There is a particular kind of code that passes every test, ships on time, and quietly becomes the most feared file in the repository. It works, but nobody is entirely sure why. Adding a feature requires careful navigation through layers of abstraction. A bug fix in one method triggers an unexpected failure somewhere else. The system is correct but not clear—and over time, that distinction matters more than almost any other. |
|
Posted On : 06 Apr 2026 |
|
|
What Does "Simple" Really Mean in Enterprise .NET? |
|
Minimal APIs, clean architecture, vertical slices, modular monoliths — the .NET ecosystem periodically renews its fascination with simplicity. Each wave promises to reduce friction, remove boilerplate, and bring us closer to something that feels elegant and obvious. The word "simple" appears everywhere: in talks, articles, and code reviews. It is praised almost universally, and yet, in enterprise systems, it remains surprisingly elusive. |
|
Posted On : 23 Mar 2026 |
|
|