Mock Interviewer
Ask Coach
Tap a question to start, or type your own below.
TinyURL Analytics System Design
Visual Problem Diagram

Scenario
Growth team needs click funnels by country and referrer but redirect must stay < 80 ms—every millisecond spent writing analytics synchronously is a lost conversion. Design shortener + stream analytics as two decoupled paths.
Design a URL shortening service with rich click analytics (geo, referrer, device) while keeping redirects extremely fast. Treat redirect and analytics as separate paths joined only by async events.
You should support link CRUD, redirect, and analytics APIs/dashboards. Be ready to explain stream processing and approximate unique counters.
Constraints
Shorten URL, redirect, click events, aggregate stats API, dashboards, bot filter hooks
< 100 ms redirect p95, analytics lag minutes acceptable, durable event log
50B clicks/month, 20K redirect RPS peak, billions stored events with TTL
Stages ahead
Log in to start practicing
Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.