---
title: "Design: a URL shortener, one machine"
description: "Design a URL shortener on one machine: who can create links, the code space, a collision during creation, the redirect lookup, and the measured limit."
canonical_url: "https://fanout.sh/system/archive/url-shortener-system-design"
md_url: "https://fanout.sh/system/archive/url-shortener-system-design.md"
last_updated: "2026-11-11"
access: "pro-preview"
---

# Design: a URL shortener, one machine

Design a URL shortener on one machine: who can create links, the code space, a collision during creation, the redirect lookup, and the measured limit.

- Access: Fanout Pro (public preview)

## The core idea

A URL shortener stores a destination behind a compact link.

Creating a link writes that mapping; opening it returns a redirect so the browser can fetch the destination itself.

## In this lesson

- The product boundary
- The application and its tables
- The code space
- A collision during creation
- The redirect lookup
- The click before the response
- The measured limit
- Before calling it ready

## Continue reading

Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
