Loading lesson…
Level 1 · Apprentice0 XP
Short codes, very fast redirects, and billions of rows.
Step 1 / 6
ProblemUsers paste a long URL and get a short one like ayv.re/x7Kp2. Opening it redirects in a blink. 100 million new links a month, read 100 times more than written.
← → step
Before this: Consensus and leader election
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Build a tiny URL shortener: POST /links returns a base62 code from a counter, GET /{code} redirects with 302 and publishes a click event. Add Redis caching and measure redirects per second. Finish with a rough monthly cost estimate in one line.