Skip to content
Chaos Lab

Challenge 11 · intermediate · Phone app

Everyone reconnects at once

Every phone keeps a live connection to the realtime gateways for notifications. At 20 seconds a routine deploy restarts the gateways. Each phone notices within half a second and reconnects; every reconnect first checks its session in the same database the app uses, then needs one of the gateways' 2,000 handshake slots a second. A failed reconnect tries again exactly a second later.

From 20 to 70 seconds, keep app opens at 99.5% or better and phones connected at 95% or more on average.

ready00:00 / 01:20Success · 10 s–p99 · 10 s–Connected100%

Goal · measured 00:20–01:10

0 changes · par 1
  • App opens succeed ≥ 99.5%not measured yet
  • Phones connected (average) ≥ 95.0%not measured yet

This is a simulation. Its numbers come from a model of a typical system, not from measuring real servers. The same link and seed always give the same run. How the Chaos Lab works.