SteelReed

Search

Search posts, questions…

System DesignQuestion 22 / 26

Senior

URL shortener: how do you make codes unguessable, keep one code per long URL, and survive the ID allocator dying?

Pro

This answer is for Pro

This question is part of the playbook: real incidents, measured numbers, trade-offs and tricky follow-ups few articles cover. The short answer, deep dive, tips and code are open to Pro accounts only.

  • Unlock every in-depth question
  • Timed mock interviews with self-scoring
  • Review in-depth cards too
  • Run exercise code right in the browser

Job hunting and can't pay right now? Send a few lines and the owner may gift it.