Challenges

Ids and read-heavy redirects

URL shortener

DifficultyStages: 0 / 4
  1. Create and redirect
  2. Ids without collisions
  3. A cache for 100 reads per write
  4. Count clicks later
  5. Final test

Build a short-link service on three small boxes. Create links, hand out ids that never collide, answer 20,000 redirects/s from a cache, and count every click without slowing the redirects.

Final testOne link goes viral: about 1M clicks per minute for 20 s. Your final board runs once more with a new traffic seed.

The system, stage by stageTap, drag or use arrow keys to step through the stages

Stage 4 of 4 · 4 parts given · 40,200 requests/s

Users 1Postgres 1

Progress on this page stays on this device.

Product names belong to their owners. Cogore is not affiliated with them.