Design a URL shortener
Lesson 38 of 40 · Sys.Micro
Billions of redirects, short unique codes, and almost no writes.
POST a long URL, get back sho.rt/aZ3k9Q. Anyone opening the short link is redirected to the original. Users may want custom aliases, expiration and click stats.
Generating short, unique codes (base62, counters vs hashes)
Check yourself
Why do many shorteners answer with 302 instead of 301?
Do it in the browser: a real system design tool, a short mission and instant feedback. No install.
Start this lesson — free