System design · Cases — three designs, worked end to end

Design a URL shortener

The classic warm-up, and the one candidates most often answer shallowly. This works it in interview order — requirements, numbers, id generation, storage, the read path, then the parts that decide the grade: expiry, custom aliases, analytics that don't slow the redirect, and abuse.

28 min read Full lesson in the app Patterns: base62, block-allocator, read-heavy-cache

What you'll be able to do

Before this: back-of-the-envelope, consistent-hashing

The rest of this lesson is in the app

The classic warm-up, and the one candidates most often answer shallowly. This works it in interview order — requirements, numbers, id generation, storage, the read path, then the parts that decide the grade: expiry, custom aliases, analytics that don't slow the redirect, and abuse. This walkthrough runs about 28 minutes, with runnable code you can edit and re-run as you read.

Continue in ChannelPulse

The first module of every track is free to read on the web — see what's open in System design.