Software Architecture
8 posts on Software Architecture.

Every Security Layer I Add Assumes the One Before It Already Failed
Why I stack security layers in a backend only I use: what each one assumes, which mistake it survives, why explaining how it works shouldn't weaken it, and what layering still cannot fix.
5 min read

Why My Rust Backend Is Not Allowed to Log In as postgres
A superuser skips row-level security, so a backend that logs in as postgres turns every RLS policy into decoration. How I split the database into three roles, why the password is a file and not an env var, and what the sqlx pool does with it.
6 min read

My Rust Backend Refuses to Start With a Bad Config File, On Purpose
One TOML file, read once at startup, and the backend doesn't start if a single key is wrong. Why I picked TOML, how serde does most of the validation, why the log level is an enum, and the error message that printed my whole config file.
7 min read

What a Cookie Banner That Only Says 'Ok' Actually Tells You
I read a public site's cookie banner and its privacy policy end to end. The banner has no reject option, and the policy declares a data-retention date six years in the past. Neither is a typo — they're the same mistake, twice.
7 min read

Fixing a Vibe-Coded MVP Costs More Than Rewriting It
An MVP that holds up in a demo with three users isn't an MVP that holds up in production. Plaintext data, broken permissions, a fix that broke five others — what I found opening a codebase built fast with an AI coding tool, and the rule I use now before deciding whether to patch it or rip it out and start over.
4 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

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

Building a Privacy-First Local RAG System (End-to-End)
A practical, end-to-end guide to building a private RAG system that never leaves your machine — local embeddings, vector store, and LLM, with real code.
5 min read