r/sre • u/Harshit_Ahluwalia • 11h ago
DISCUSSION Deciding what users see when a region fails: a matchmaking example
Graceful degradation usually gets one line in a design doc. Here's what it looks like when you actually have to decide, using a game matchmaking service as the example (10M players waiting, clients polling every 3 seconds).
Primary database down in one region
- Stop accepting new queue joins in that region and say so ("queue paused, retrying shortly") instead of returning errors.
- Let matches already in progress finish. Don't kill working sessions to make the system look consistent.
- Don't silently fail over into a neighbouring region if that region is already near capacity. You'll turn one outage into two.
Whole region down
- Route new joins to the nearest healthy region, with a cap on how much extra load it accepts.
- Players lose their queue position. Tell them honestly rather than pretending nothing happened.
The outage you cause yourself: retry storms
Every client polling every 3 seconds becomes a retry storm the moment things slow down. Add jittered backoff on the client and return a retry-after hint from the server, so recovery doesn't get flattened by your own traffic.
Hot spots
One popular game in one region can overload a shared tier. Partitioning the queue by game + region (+ skill bracket) keeps a hot key contained, and a hot partition can be split further without touching the rest.
Write the goals down as numbers
"Fast" and "reliable" aren't requirements. Something like "95% of players matched within 30 seconds, and new joins paused rather than failing during a regional outage" is something you can design and alert on.
What do you show users during a partial regional outage: a paused queue, or a cross-region fallback?
(This comes from a workshop Tural Suleymani, a Microsoft MVP, is running on Wednesday, where he works through these failures live on an open-source service)