The Dependency You Didn't Draw
Every architecture diagram is a confident lie.
Boxes. Arrows. Neat little flows going left to right. Sessions talk to gateways, gateways talk to voice, voice talks to the SFUs. Clean. Legible. Safe.
Then a routine config change knocks out 17% of your sessions, and you learn which arrows you forgot to draw.
That's the story behind Discord's recent voice outage postmortem, and it's worth reading not for the Elixir details, but for the shape of the failure.
A scale-down dropped a chunk of sessions. Every dropped session fired a monitor. Every monitor sent a message. Those messages fanned out through gateways, then into voice, until a connection-pool supervisor deep in the voice syncers started drowning in its own mailbox.
Here's the part nobody diagrams:
That same backed-up supervisor also handled the etcd connection used for service discovery. So as the mailbox grew, healthy instances couldn't renew their registration and quietly fell out of the hash ring. The overload didn't just slow voice down. It made voice invisible to itself.
That's the dependency you didn't draw.
Not "A calls B." But "A and service discovery share a chokepoint, and under load they take each other down." Circular pressure hiding inside two lines that looked completely unrelated on the whiteboard.
Diagrams show you intended dependencies.
Incidents show you the accidental ones.
A few things I took from it:
- Shared infrastructure is a dependency, even when there's no arrow. A connection pool, a supervisor, a thread pool, a single Redis, they couple everything that touches them.
- Load doesn't respect your layers. Sudden demand hurtles through old bottlenecks and goes looking for new ones you've never seen.
- Your recovery path has dependencies too. If service discovery rides the same overloaded component, restarts just re-enter the same failure mode. Ask a Discord engineer about whack-a-mole.
The annoying part: you rarely find these by staring at the diagram harder.
You find them when the whole thing is on fire and something falls over three hops away from where you pushed.
So the useful question isn't "is my architecture diagram correct?"
It's "what's touching this box that I never bothered to draw?"
What's the accidental dependency that finally showed up in one of your postmortems?
Postmortem worth your time: https://discord.com/blog/behind-the-scenes-of-the-3-25-26-voice-outage