P

PrepStack

"Case Study: URL Shortener"

A URL shortener (a service that turns a long web address into a short one and sends visitors from the short one to the long one) is a small problem with real choices inside it. This note builds one design from stated assumptions, not "the" answer. The central trade-off: codes that never repeat, and a redirect that is fast yet sees every click. After this note you can size the system, choose a code scheme with reasons, and explain 301 against 302.

Topics in this section