PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Microsoft

Design a high-scale URL shortener

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's ability to design scalable, high-throughput distributed systems with emphasis on URL mapping, storage and indexing, caching and geo-routing for low latency, capacity planning for heavy read/write ratios, and durability under write spikes and analytics requirements.

  • medium
  • Microsoft
  • System Design
  • Software Engineer

Design a high-scale URL shortener

Company: Microsoft

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a URL shortening service. ## Core APIs / Features - **Create short URL**: accept a long URL and return a short code / short URL. - **Redirect**: given a short code, redirect to the original long URL. - Optional: - **Expiry** (TTL) for short links - **Analytics** (click counts, time series, referrer, geo/device, etc.) - **Admin / management** (list links, disable/delete, etc.) ## Scale assumptions - ~**1M creates/day** - ~**1B redirects/day** (read-heavy) ## Follow-up requirements 1. **Multi-region / global low latency**: how do you serve redirects quickly worldwide (geo routing, load balancing, caching strategy, consistency trade-offs)? 2. **Write spike durability**: if create traffic spikes from ~300–500 QPS to **1000 QPS**, how do you **guarantee every create request is processed without dropping** (e.g., queue/worker, retries, DLQ, idempotency, backpressure)?

Quick Answer: This question evaluates a candidate's ability to design scalable, high-throughput distributed systems with emphasis on URL mapping, storage and indexing, caching and geo-routing for low latency, capacity planning for heavy read/write ratios, and durability under write spikes and analytics requirements.

Related Interview Questions

  • Design A Scalable Web Crawler - Microsoft (medium)
  • Design User Re-engagement Notifications - Microsoft (medium)
  • Design a typeahead search service - Microsoft (hard)
  • Design a Secure Copilot API - Microsoft
  • Design a URL Shortener - Microsoft (hard)
Microsoft logo
Microsoft
Feb 12, 2026, 12:00 AM
Software Engineer
Onsite
System Design
6
0
Loading...

Design a URL shortening service.

Core APIs / Features

  • Create short URL : accept a long URL and return a short code / short URL.
  • Redirect : given a short code, redirect to the original long URL.
  • Optional:
    • Expiry (TTL) for short links
    • Analytics (click counts, time series, referrer, geo/device, etc.)
    • Admin / management (list links, disable/delete, etc.)

Scale assumptions

  • ~ 1M creates/day
  • ~ 1B redirects/day (read-heavy)

Follow-up requirements

  1. Multi-region / global low latency : how do you serve redirects quickly worldwide (geo routing, load balancing, caching strategy, consistency trade-offs)?
  2. Write spike durability : if create traffic spikes from ~300–500 QPS to 1000 QPS , how do you guarantee every create request is processed without dropping (e.g., queue/worker, retries, DLQ, idempotency, backpressure)?

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Microsoft•More Software Engineer•Microsoft Software Engineer•Microsoft System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.