Skip to content
Chaos Lab

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.

ready00:00 / 01:00Success · 10 s–p99 · 10 s–Taken over0Codes used twice0

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

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.