Backend & Systems
22 posts on Backend & Systems.

Axum "Handler<_, _> Is Not Satisfied": Eight Causes, Eight Repros
The trait bound fn(...): Handler<_, _> is not satisfied looks the same whatever you broke. I reproduced eight causes on axum 0.8.9, ran each one with and without #[axum::debug_handler], and wrote down the line that names the cause and the fix.
11 min read

Ollama from C# in 2026: IChatClient with OllamaSharp, Without the Deprecated Package
Which NuGet packages to install to call a local Ollama model from .NET 10, how to register IChatClient in a minimal API, stream tokens over SSE and get typed JSON back. Measured on two small models, plus what the deprecated package still does.
11 min read

GLIBC_2.38 Not Found: a Rust Binary in debian-slim and Distroless
My Axum binary built on rust:1 ran fine on bookworm-slim. Then I added vendored OpenSSL and it died before main with version GLIBC_2.38 not found. How to read the error, the objdump line that explains it, and three fixes I built and measured.
11 min read

sqlx Offline Mode: Building in Docker and CI With No Database in Sight
sqlx's query! macros check every query against a live Postgres at compile time, so a plain docker build fails. How I build with SQLX_OFFLINE and a committed .sqlx folder, the .env that quietly turned it off, and the schema change that compiled fine and panicked at runtime.
12 min read

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

SIGTERM, Not SIGKILL: Graceful Shutdown in Axum
Ctrl+C and docker compose stop both killed my axum server on the spot. How with_graceful_shutdown and tokio::select! let it finish what it started, the copied line that quietly disabled it, and a request that outlived the signal.
5 min read

JSON Logs in Rust, With the Level in a Config File Instead of RUST_LOG
Structured JSON logs with tracing in a Rust backend: a log level read from the same TOML file as everything else, fields instead of sentences, the error that only shows up in tests, and the rule for which errors deserve a log line.
6 min read

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

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 Exited With Code 0 While the Database Was Down
The database was down, the backend printed nothing and exited 0. Three small mistakes with map_err, unwrap and a missing .await made a failing service look healthy. How errors should travel up to main, and the one test that catches 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

Me Contro Te: banner cookie senza rifiuto e informativa privacy scaduta dal 2019
Il banner cookie di Me Contro Te non permette di rifiutare i cookie non necessari — solo 'Ok' o link alla privacy policy — e la sua informativa dichiara di trattare i dati 'e comunque non oltre il 31/12/2019'. Ecco cosa ho trovato e cosa dice il GDPR.
4 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

I Ran My GDPR Logging Schema and It Found Three Bugs in a Day
Designing a healthcare logging schema on paper is easy. Booting it exposed a hashed-user count that was quietly wrong, a device fingerprint that walked straight past redaction, and a TTL test that proved a caveat I had only written down.
8 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

Using an LLM as a Heuristic Dispatcher, Not a Cloud API Wrapper
Mobishare's chatbot picks which technician gets a repair ticket by feeding a local LLM a small JSON summary and asking for a GUID back. It's a legitimate pattern — undone for months by an Italian/English string mismatch.
6 min read

Reservation State Can't Live in a UI Countdown
Mobishare's vehicle-reservation timer was a singleton service holding one connection ID for the entire app, with expiry driven by client-side JavaScript. Here's why that's a concurrency bug, not a UI detail.
5 min read

Wrapping a Legacy Shipping Carrier API in One Endpoint
I built a FastAPI service that turns a two-step, rate-limited carrier API into one internal endpoint — token caching, retry logic, order mapping, and an undocumented limit found the hard way.
7 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