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.

TinyURL Analytics System Design

Visual Problem Diagram

TinyURL Analytics System Design architecture diagram

Scenario

You tap a short link and expect the real page to open immediately, while the team that made the link still expects a count by country and by the site that sent you. The painful failure is the hop taking longer than 80 ms, because the click was saved in the database before the browser was sent on.

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 turns a long address into a short link. Someone taps it and lands on the long page. The owner opens a dashboard. They can group those clicks by country. They can group them by the site that sent people. They can group them by phone or laptop.

You need to explain how the browser is sent on before the click is stored. You need to explain how stored clicks become the counts on the dashboard. You need to explain how one person who taps twice is counted once. You need to explain how a scripted tap is left out of the count. A full export of every raw click can stay thin.

Constraints

Functional

Turn a long address into a short link. Send a tap on to the long page. Record the click. Serve totals for a dashboard. Leave out taps that look like scripts.

Non-functional

Most redirects finish in under 100 ms, so the hop feels instant. Dashboard totals can trail the click by a few minutes, which is fine for a report. The click log is kept, so a total can be rebuilt.

Scale

About 50 billion clicks a month, peaking around 20,000 redirects a second. Billions of click records are stored and then allowed to expire. 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