Posts tagged “reliability”
-
What really happened in the Microsoft 365 outage?
On 12 November 2026, Outlook, Teams, SharePoint and Copilot went down worldwide for a day. Microsoft's final report traces it to a months-old fix on its gateway servers, a Teams failover, maintenance and peak traffic, spread worldwide by its own traffic management. The full timeline, the…
-
How do you deliver webhooks so no event is ever lost?
Write every event to an outbox, retry with backoff and jitter for a day or more, sign each request with a timestamp, and let receivers replay what they missed. Receivers answer fast, deduplicate by event ID and never trust order. The design, and the quiet failure it prevents.
-
How do you keep two systems consistent without distributed transactions?
An order in one database, its payment in another, and a process that can die between them. Dual writes, two-phase commit, sagas and the outbox, each run 1,000 times with crashes injected: what goes wrong, what recovers, and what two-phase commit's in-doubt transactions block.
-
What's the cheapest disaster recovery that actually works?
Backups you've never restored are a hope. Two numbers decide a disaster-recovery plan: how much data you can lose (RPO) and how long you can be down (RTO). Measured on a 1 GB PostgreSQL database: a nightly dump vs continuous WAL archiving, with the server and its disk deleted mid-write.
-
How do queues schedule millions of delayed retries?
"Retry this in 30 seconds", a million times over. A min-heap, a timing wheel, and a row in PostgreSQL with an index on its due time, measured: what each costs to add, cancel and fire, how late jobs run, and what survives a restart.
-
Why did adding a cache make our data wrong?
A cache is a second copy of your data with its own rules, and every way it can disagree with the database shows up as a bug. Five failure modes measured with Redis in front of PostgreSQL, and the fix for each.
-
How do you migrate a live database without downtime?
Most outages during migrations aren't failed migrations; they're migrations that held a lock while traffic queued behind them. Measured on a 5M-row table under load: one-step changes that stalled every request for 2-8 seconds, and the online versions that stalled them for a fraction of a second…
-
When should a write go through a queue instead of the API?
Queue the work behind a write when it's slow, unreliable or can finish after you answer; keep it synchronous when the caller needs the result. And never publish from the request itself: use an outbox.