← all notes
Guide4 min

Server-side 101: what happens between request and response

the journey of a click — and where it usually goes wrong.

Every click is a small journey: client → network → server → validation → data → response → render. When something breaks, it breaks at one of those stations — and finding it is just walking the line.

The mistakes I see most: validation done only in the UI, errors swallowed silently, and no thought about what a bad request or a duplicate click looks like server-side. The server is where the product actually lives — the UI is just a window.

One rule turns most of my backends boring in the best way: assume every request is hostile, return explicit errors, and log the ones that mattered. Boring backends ship; clever ones file incident reports.the journey of a click

the point is simple — the details are not.