API Design
5 posts on API Design.

Liveness vs Readiness in Axum, and the Health Check That Always Said OK
My readiness endpoint answered 200 with the database gone, because a handler with no return type answers 200. Two health checks in axum that mean different things, an empty 503, and tests that call the router without opening a port.
5 min read

Backend Engineering: The Five Boundaries I Got Wrong
Every backend bug I have shipped turned out to be the same bug wearing a different costume — a boundary I assumed was enforced when nothing was enforcing it. Five real ones, with the code, the numbers, and the tell that would have caught each of them earlier.
9 min read

My ASP.NET Core App Called Its Own API Over HTTP
MobiShare's Razor Pages, SignalR hub, and MQTT handler all call the app's own Web API over loopback HTTP instead of in-process — forcing a cookie-forwarding handler and an AsyncLocal hack. An accidental distributed monolith, and what it cost.
6 min read

The API Had No Lock: Finding an ASP.NET Core Auth Hole in My Own App
app.UseAuthentication() was never called and no API controller had [Authorize]. The whole JSON API was open to anyone. Here's how I found it, and what it actually took to fix it without breaking the app.
6 min read

CQRS with MediatR in a Real ASP.NET Core App: Worth It?
Mobishare splits every operation into a MediatR command or query, one file each, thin controllers throughout. Here's what that buys you — and the swallowed-exception bug it let slip through.
6 min read