Stock-outs and error budgets: inventory thinking for reliability
A pharmacy that never runs out and an API that never fails are managed the same way: with levels, buffers, and budgets.
By Nzubechukwu Cyprian · Pharmacy student at UNN, full-stack developer
Pharmacy's core operational problem is reliability under uncertainty: patients need the drug in stock every time it's needed, yet supply chains fail, demand spikes, and storage is finite. Software calls this reliability engineering. Pharmacy has been running it for a century with shelves instead of dashboards.
The shared mathematics
Safety stock = error budget. Pharmacies hold buffer inventory precisely because demand is unpredictable — the buffer absorbs the variance. SREs hold error budgets the same way: a reserve of tolerated failure that absorbs the variance of change. Run the buffer to zero and every new shipment (or deploy) becomes a crisis.
Reorder points = alerting thresholds. The pharmacist doesn't wait for the empty shelf; a reorder point triggers action while there's still runway. Monitoring is the same: alerts should fire with enough runway to act calmly, not at the moment of failure.
Expiry = technical debt with a date. Stock that expires isn't bad stock — it's inventory that was misplanned. Code with a known sunset date is the same: managed deliberately, written down, replaced on schedule rather than discovered rotting.
ABC analysis = prioritised reliability. Pharmacies classify stock by criticality — life-saving drugs get the tightest control. Services have the same tiers: the payment path gets the strictest budgets and the most monitoring; the logo page can wait.
Why the transfer matters
Reliability feels abstract until you've watched a stock-out disappoint a patient who travelled for the medicine. Shelves taught me what uptime dashboards now track: reliability isn't perfection — it's buffers, thresholds, and honest accounting of what failure costs.
Keep reading
- Pharmacy × Tech
Pharmacy by school, software by conviction
I didn't choose between the lab and the keyboard. The combination isn't a compromise — it's a strategy neither discipline alone gives you.
- Pharmacy × Tech
What dispensing prescriptions taught me about input validation
A prescription is an API call with life-or-death validation requirements. Pharmacy school taught me forms before code did.
- Pharmacy × Tech
Two vocabularies: translating between clinicians and compilers
Being bilingual in health and tech means seeing the same problem described twice — and knowing both descriptions are partial.