Skip to content
SD-35 · LOGIN AND AUTHENTICATION · INTERACTIVE

Break it.
Then fix it.

Turn up the traffic, and the bots that come with it, and watch what fails: the session check, the password hashing or the accounts themselves. Every switch is a decision you would defend in an interview.

CHALLENGEServe 150K req/s during a stuffing wave with every part healthy, strong hashes and zero takeovers.
StatusDOWNAt 150K requests per second
Auth time per page150 msTarget 20 ms or less
Login CPU98%3.1K attempts/s hashed
Takeovers10,800 / hourLeaked passwords that work
Errors33.3%Requests being dropped
Monthly cost$7,200Auth only
Visitors + botsLIVE
150K req/s · 3.0K bot logins/s
traffic source
Auth servers × 10TAKEOVERS
argon2id, 50 ms a hash
3.1K logins/s · 158 cores
Web services × 5OK
Each checks the cookie
750K session lookups/s
Users DBOK
argon2id hashes
3.1K queries/s
Session storeDOWN
6 shards in memory
750K / 500K ops/s
Every service checks the cookie again. A page touches 5 services, so 150K requests make 750K lookups, past the store’s 500,000. Check once at a gateway and pass a signed 60-second token inside.
50 msPer argon2id hashSlow on purpose, so a stolen hash is slow to crack.
5×Lookups savedThe gateway checks the cookie once; services trust its token.
95%Stuffing blockedAt the edge, before any CPU is spent on hashing.
1 in 1,000Leaked pairs that workWhy rate limits alone are not enough: add a second factor.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.