Nzubechukwu.
← All posts
Pharmacy × Tech5 min read

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

Generative cover art for the post “Stock-outs and error budgets: inventory thinking for reliability”

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.

Nzubechukwu Cyprian studies Pharmacy at the University of Nigeria, Nsukka and builds software, products, and AI experiments in between.