AlgoGymPreparationInterview Preparations
Cool NotesURL shortener design
All notes

URL shortener design

System Design · Original AlgoGym revision note with a source for deeper study.

System Design
  1. Estimate create and redirect traffic, storage, and link lifetime before picking a data store.
  2. Use collision-safe keys and define whether links are mutable or permanent.
  3. Cache hot redirects and keep analytics writes off the redirect critical path.
Read more at System Design Primer