Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

URL Redirection System Design

Visual Problem Diagram

URL Redirection System Design architecture diagram

Scenario

You tap a link in a marketing email on the brand's own domain, expecting the offer page to open from a nearby copy of that link. The painful failure is the open timing out under 5 million taps in 10 minutes, because every tap still read the origin database.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

A person creates a short link and can put their own word on it. They can serve it on their own domain name. Someone taps the link and lands on the long page. The owner can see click counts afterward. The owner can set a date when the link stops.

You need to explain how a hot link is answered from a nearby copy. You need to explain how the click is counted after the browser is sent on. You need to explain how the brand's own domain name still finds the right link. You need to explain how a link that has reached its end date is removed from that nearby copy. A review of the destination for scams can stay thin.

Constraints

Functional

Create a short link and redirect the tap to the long page. Allow a custom word and a custom domain. Let a link expire. Count clicks. Block a link that was flagged as dangerous.

Non-functional

Most redirects around the world finish in under 50 ms, so people do not wait on the hop. The redirect path stays up about 99.99% of the time. Click counts become accurate after a short delay, not in the same instant as the tap.

Scale

About 100 billion redirects a month. A viral link can reach about 100,000 taps a second. Millions of new links are created each month. The redirect read is the rate that dominates.

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Not ready to design yet?

Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.

Try Coach free

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.

Want full access now? View Pro pricing