Practice

System Design Challenges

Real case studies that get harder as you go. Design systems, meet constraints, and see how they hold up in production.

75/75
Showing

What You'll Practice

Every challenge is built around production-style constraints: throughput, latency, storage scale, consistency tradeoffs, and failure handling.

Load BalancingDatabasesCachingMessage QueuesMonitoring

Cake Shop 1 - Going Online

A small bakery wants to launch a website for online orders. Design the backend for ~10 k daily visitors.

DatabasesAPI Design
Easy

Cake Shop 2 - Scaling Up

Requires: Cake Shop 1

The bakery goes viral on social media. Handle 500 k daily visitors with caching and load balancing.

DatabasesCachingLoad BalancingCDN
Easy

Cake Shop 3 - Going International

Requires: Cake Shop 2

The bakery expands to 5 countries. Design for multi-region, currency, and localization.

DatabasesCDNGeo DistributionReplicationAPI Design
Medium

Cake Shop 4 - Real-Time & Resilience

Requires: Cake Shop 3

Add real-time order tracking, kitchen displays, and survive an entire region going down.

WebSocketsMessage QueuesMonitoringReplicationConsistency
Hard

RideShare 1 - City Launch

Launch a ride-hailing app in a single city with real-time driver matching.

DatabasesAPI DesignLoad BalancingWebSockets
Medium

RideShare 2 - Multi-City & Surge Pricing

Requires: RideShare 1

Expand to 20 cities, add surge pricing, and handle 1 M rides/day.

DatabasesCachingMessage QueuesAnalyticsSharding
Medium

RideShare 3 - Global Scale & Autonomous Fleet

Requires: RideShare 2

Operate in 50 countries with autonomous vehicles, ML-based dispatch, and five-nines uptime.

Geo DistributionShardingMessage QueuesMonitoringConsistencyContainerization
Hard

Social Feed 1 - MVP Launch

Build a simple social feed app with posts, follows, and a chronological timeline.

DatabasesAPI DesignCachingStorage
Easy

Social Feed 2 - Going Viral

Requires: Social Feed 1

Handle 10 M users, celebrity fan-out, full-text search, and push notifications.

CachingMessage QueuesDatabasesSearchNotifications
Medium

Social Feed 3 - Global Platform with Media

Requires: Social Feed 2

Scale to 500 M users, add video/image uploads, content moderation, and multi-region deployment.

CDNMedia ProcessingGeo DistributionShardingMessage QueuesMonitoring
Hard

Flash Sale - Inventory Under Pressure

Design a flash sale system where 1 M users compete for 10,000 items in 60 seconds.

DatabasesCachingRate LimitingMessage QueuesConsistency
Medium

Chat App 1 - Team Messaging

Build a Slack-like team messaging app with channels, DMs, and presence indicators.

WebSocketsDatabasesAPI DesignAuth
Medium

Chat App 2 - End-to-End Encryption & Federation

Requires: Chat App 1

Add E2E encryption, cross-org messaging, and scale to 50 M users across regions.

WebSocketsDatabasesAuthGeo DistributionReplicationConsistency
Hard

Video Streaming - On-Demand Platform

Design a Netflix-like video streaming platform serving 100 M users worldwide.

CDNMedia ProcessingDatabasesCachingStorageMicroservices
Hard

Payment Gateway 1 - Online Checkout

Build a payment processing service for a mid-size e-commerce store handling 50 k transactions/day.

DatabasesAPI DesignAuth
Easy

Payment Gateway 2 - Global & Fraud Detection

Requires: Payment Gateway 1

Scale to 50 M transactions/day across 30 countries with real-time fraud detection and multi-currency settlement.

DatabasesShardingMessage QueuesAnalyticsGeo DistributionMonitoring
Hard

Search Engine 1 - Web Crawler & Index

Design a web crawler that indexes 10 M pages and serves keyword search results in < 200 ms.

DatabasesMessage QueuesStorageAPI Design
Medium

Search Engine 2 - Ranking, Autocomplete & Global Scale

Requires: Search Engine 1

Scale to 1 B pages with PageRank, autocomplete, personalized results, and multi-region serving.

DatabasesCachingShardingAnalyticsGeo DistributionSearch
Hard

IoT Platform 1 - Smart Home Hub

Build a smart home platform connecting 100 k devices with real-time control and status updates.

DatabasesAPI DesignWebSocketsAuth
Easy

IoT Platform 2 - Industrial Scale & Edge Computing

Requires: IoT Platform 1

Scale to 50 M industrial sensors with edge processing, anomaly detection, and five-nines uptime.

DatabasesMessage QueuesMonitoringShardingAnalyticsContainerization
Hard

Cloud Drive 1 - Personal File Storage

Design a Dropbox-like cloud storage service for 1 M users with sync, sharing, and versioning.

StorageDatabasesAPI DesignCDNAuth
Medium

Cloud Drive 2 - Enterprise Collaboration & Compliance

Requires: Cloud Drive 1

Scale to 100 M users with real-time co-editing, eDiscovery, data loss prevention, and multi-region replication.

StorageDatabasesSearchAuthMonitoringReplication
Hard

Ticket Booking - Concert & Event Reservations

Design a Ticketmaster-like platform handling 500 k users competing for seats in a 50 k-capacity venue.

DatabasesCachingRate LimitingMessage QueuesConsistency
Medium

Notification System - Multi-Channel Delivery

Build a platform-wide notification service delivering 100 M messages/day across push, email, SMS, and in-app.

Message QueuesDatabasesAPI DesignNotificationsMonitoring
Medium

Design Twitter

Design the architecture behind Twitter - tweets, timelines, trends, and search at 500 M+ users.

DatabasesCachingShardingMessage QueuesSearchCDN
Hard

Design Instagram

Design Instagram's photo/video sharing platform - feed generation, Stories, Reels, and Explore at 2 B users.

DatabasesCDNMedia ProcessingCachingShardingMessage Queues
Hard

Design YouTube

Design YouTube's video platform - upload, transcode, adaptive streaming, recommendations, and comments at planetary scale.

CDNMedia ProcessingDatabasesCachingStorageMicroservicesSearch
Hard

Design WhatsApp

Design WhatsApp's messaging platform - E2E encryption, group chats, media, and offline delivery for 2 B users.

WebSocketsDatabasesAuthReplicationGeo DistributionConsistency
Hard

Design Uber

Design Uber's ride-hailing platform - real-time matching, surge pricing, ETA prediction, and global dispatch for 100 M+ users.

DatabasesWebSocketsMessage QueuesCachingGeo DistributionAnalytics
Hard

Design Spotify

Design Spotify's music streaming platform - audio delivery, personalized playlists, offline mode, and social features for 600 M users.

CDNDatabasesCachingMicroservicesStorageAnalytics
Hard

Design Amazon

Design Amazon's e-commerce platform - product catalog, cart, checkout, recommendations, and warehouse fulfillment at 300 M+ users.

DatabasesCachingMicroservicesSearchMessage QueuesSharding
Hard

Design Google Maps

Design Google Maps - map tile rendering, real-time navigation, traffic prediction, and place search for 1 B+ users.

DatabasesCachingCDNGeo DistributionStorageAnalytics
Hard

Design Slack

Design Slack's team communication platform - channels, threads, search, file sharing, integrations, and enterprise compliance at 30 M+ DAU.

WebSocketsDatabasesSearchAPI DesignAuthMicroservices
Hard

Design TikTok

Design TikTok's short-video platform - video creation, For You feed, content moderation, and viral distribution for 1 B+ users.

CDNMedia ProcessingDatabasesCachingAnalyticsMessage Queues
Hard

Design Airbnb

Design Airbnb's marketplace - listing search, booking, payments, reviews, pricing, and trust at 150 M+ users.

DatabasesSearchCachingGeo DistributionAPI DesignMessage Queues
Hard

Design Google Docs

Design Google Docs - real-time collaborative editing, conflict resolution, version history, and offline support for 1 B+ users.

WebSocketsDatabasesConsistencyStorageAuthAPI Design
Hard

Design Zoom

Design Zoom's video conferencing platform - real-time video/audio, screen sharing, recording, and breakout rooms for 300 M+ daily participants.

WebSocketsCDNGeo DistributionDatabasesMonitoringAuth
Hard

Personal Blog Platform

Design a personal blogging platform where authors write posts and readers leave comments. ~5 k daily visitors.

DatabasesAPI DesignCaching
Easy

To-Do List API

Design a RESTful to-do list API with user accounts, lists, tasks, and due-date reminders.

DatabasesAPI DesignAuth
Easy

URL Shortener

Design a URL shortening service (like Bitly) that creates short links and tracks click analytics.

DatabasesCachingAPI Design
Easy

Pastebin Service

Design a Pastebin-like service for sharing text snippets with syntax highlighting and expiration.

DatabasesStorageAPI Design
Easy

Link-in-Bio Page

Design a Linktree-like service where users create a personalized page with links to their social profiles.

DatabasesAPI DesignCDN
Easy

Contact Form Service

Design a form submission backend that receives contact form data, validates it, and sends email notifications.

DatabasesAPI DesignRate Limiting
Easy

Poll & Survey Tool

Design a simple polling/survey tool where users create polls, share them, and see real-time results.

DatabasesAPI DesignCaching
Easy

File Upload Service

Design a file upload and sharing service that handles uploads up to 100 MB with download links.

StorageAPI DesignCDN
Easy

Weather Dashboard API

Design a weather API that aggregates data from multiple providers, caches results, and serves forecasts.

CachingAPI DesignDatabases
Easy

Bookmark Manager

Design a browser-independent bookmark manager with folders, tags, search, and import/export.

DatabasesAPI DesignAuth
Easy

Status Page Service

Design a status page service (like Statuspage.io) showing uptime, incident updates, and health checks.

DatabasesAPI DesignMonitoring
Easy

Email Newsletter Service

Design an email newsletter platform for creators to manage subscribers, write campaigns, and track opens.

DatabasesAPI DesignMessage Queues
Easy

Recipe Sharing App

Design a recipe sharing platform with ingredient search, meal planning, and grocery lists.

DatabasesAPI DesignSearchStorage
Easy

QR Code Generator API

Design a QR code generation API that creates, stores, and tracks QR codes for URLs, text, and contact cards.

API DesignCachingCDN
Easy

Gaming Leaderboard

Design a real-time gaming leaderboard showing top players, rank lookups, and score history.

DatabasesCachingAPI Design
Easy

Image Gallery & Album Service

Design an image gallery service where users upload photos, organize them into albums, and share galleries.

StorageDatabasesCDNAPI Design
Easy

Expense Tracker API

Design a personal expense tracking app with categories, budgets, recurring expenses, and monthly reports.

DatabasesAPI DesignAuth
Easy

Event RSVP Platform

Design an event creation and RSVP platform where organizers create events and guests respond.

DatabasesAPI DesignNotifications
Easy

Feature Flag Service

Design a feature flag service that lets teams toggle features, run A/B tests, and do gradual rollouts.

DatabasesAPI DesignCaching
Easy

Product Changelog / Release Notes

Design a hosted changelog service where product teams publish release notes and users subscribe to updates.

DatabasesAPI DesignCDN
Easy

E-Commerce Product Search

Design a product search engine with faceted filters, autocomplete, spell correction, and relevance ranking for 5 M products.

SearchDatabasesCachingAPI Design
Medium

API Gateway & Rate Limiter

Design an API gateway that handles routing, authentication, rate limiting, and request transformation for 50 microservices.

API DesignRate LimitingCachingAuthMonitoring
Medium

Distributed Job Scheduler

Design a distributed cron/job scheduler that runs millions of scheduled tasks reliably with retries and monitoring.

DatabasesMessage QueuesMonitoringAPI Design
Medium

Content Moderation Pipeline

Design a content moderation system that screens text, images, and video using AI + human review for a social platform.

Message QueuesDatabasesAPI DesignStorageMonitoring
Medium

Content Delivery Network

Design a CDN with edge caching, cache invalidation, origin shielding, and real-time purge support.

CDNCachingStorageMonitoringGeo Distribution
Medium

OAuth2 / SSO Identity Provider

Design an OAuth2 identity provider with SSO, MFA, social login, session management, and RBAC for 1 M users.

AuthDatabasesAPI DesignCaching
Medium

Real-Time Analytics Dashboard

Design a real-time analytics pipeline that ingests clickstream events and powers live dashboards with < 5 s latency.

AnalyticsDatabasesMessage QueuesCachingWebSockets
Medium

Food Delivery Backend

Design a food delivery platform with restaurant listings, ordering, real-time driver tracking, and ETA estimates.

DatabasesWebSocketsMessage QueuesCachingAPI Design
Medium

Log Aggregation System

Design a centralized logging system (like Datadog Logs) that ingests, indexes, and searches 1 TB of logs per day.

DatabasesMessage QueuesStorageSearchMonitoring
Medium

1-on-1 Video Calling

Design a peer-to-peer video calling feature with signaling, NAT traversal, call history, and adaptive quality.

WebSocketsDatabasesAuthMonitoring
Medium

Appointment Booking System

Design an appointment scheduling platform with availability management, booking, reminders, and waitlists for service businesses.

DatabasesAPI DesignCachingNotifications
Medium

Collaborative Whiteboard

Design a real-time collaborative whiteboard (like Miro/Excalidraw) with drawing, shapes, sticky notes, and multi-user cursors.

WebSocketsDatabasesStorageAPI Design
Medium

Image Optimization Service

Design an image optimization CDN that resizes, compresses, and converts images on-the-fly for web performance.

StorageCDNAPI DesignCachingMedia Processing
Medium

Managed DNS Service

Design a managed DNS service with zone hosting, health-check routing, geo-based routing, and fast propagation.

DatabasesGeo DistributionCachingMonitoringAPI Design
Medium

Online Code Sandbox

Design an online code execution sandbox (like CodeSandbox / Replit) that runs user code safely with real-time collaboration.

ContainerizationDatabasesWebSocketsAPI DesignStorage
Medium

Link Aggregator / Tech News

Design a Hacker News / Reddit-style link aggregator with voting, ranking, comments, and anti-manipulation measures.

DatabasesCachingAPI DesignSearchRate Limiting
Medium

CI/CD Pipeline Service

Design a CI/CD platform (like GitHub Actions) that runs build pipelines in isolated containers with parallel steps and artifact caching.

ContainerizationMessage QueuesDatabasesStorageMonitoring
Medium

Multi-Tenant SaaS Platform

Design a multi-tenant SaaS backend with tenant isolation, per-tenant billing, custom domains, and data residency.

DatabasesAuthAPI DesignShardingMonitoring
Medium