Challenge 59 · intermediate · OTP sign-in
One code, two sign-ins
Users sign in with a 6-digit code sent by SMS: 100 sign-ins a second. To use a code, the OTP service reads it from the code store, checks it, then deletes it. At 10 seconds double submits begin: about 7 in every 100 codes arrive in two requests a few milliseconds apart. This is a fictional, self-contained simulation.
From 15 to 60 seconds, let no code be accepted twice (at most 0.01% of sign-ins), while at least 99% of sign-ins succeed.
Goal · measured 00:15–01:00
0 changes · par 1- Codes accepted twice ≤ 0.01%not measured yet
- Sign-ins succeeding ≥ 99.0%not measured yet
Service map
What changed
Turn on a fault or change a defence while the run plays. Its effect shows here: the 5 seconds before against 5 seconds after it settles.
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.