System Design Interview Questions and Answers
Every question here is a complete design, from a simple URL shortener up to a payments ledger or a multi-region system. Each answer ends with a trade-offs table, because the usual follow-up is not "what would you build" but "what does that cost you".
A good order is to start with the small designs (URL shortener, rate limiter, notification service) to learn the building blocks, then do the data-heavy ones (feed, chat, search), and leave payments and multi-region for last. Say each design out loud once before you read the answer.
Questions
- What is High-Level Design (HLD)?
- What is the difference between HLD and LLD?
- What is scalability?
- What is the difference between vertical and horizontal scaling?
- What is availability?
- What is reliability?
- What is fault tolerance?
- What is elasticity?
- What is a stateless service?
- What is a stateful service?
- What is a load balancer?
- What is the difference between Layer 4 and Layer 7 load balancing?
- What is DNS?
- How does DNS resolution work?
- What is a CDN?
- What is a reverse proxy?
- What is an API Gateway?
- What is service discovery?
- What is the difference between client-side and server-side service discovery?
- What is a microservice?
- What is the difference between a monolith and microservices?
- What is horizontal partitioning?
- What is database sharding?
- What is replication?
- What is primary-replica (master-slave) database architecture?
- What is database indexing?
- What is the difference between SQL and NoSQL?
- When would you choose MongoDB?
- When would you choose PostgreSQL?
- What is Redis?
- When should Redis be used?
- What is the cache-aside pattern?
- What is a write-through cache?
- What is a write-back (write-behind) cache?
- What is cache invalidation?
- What is a message queue?
- What is the difference between a queue and a topic?
- What is the difference between Kafka and RabbitMQ?
- What is asynchronous processing?
- What is the difference between synchronous and asynchronous communication?
- What is the difference between REST and gRPC?
- What is a WebSocket?
- What is the difference between HTTP polling and long polling?
- What is idempotency?
- What is rate limiting?
- What is a circuit breaker?
- What is retry with exponential backoff?
- What is a timeout?
- What is a distributed system?
- What are the major components you consider when designing a scalable system?
- How do you do back-of-envelope estimation (capacity planning) in a system design interview?
- What is the structured HLD design process (flowchart) for a system design interview?
- Back-of-envelope estimation for common system design problems
- Design a URL shortener (like bit.ly).
- Design a file upload service.
- Design an image upload service.
- Design a basic authentication service.
- Design a password reset system.
- Design a notification service.
- Design an email sending service.
- Design an SMS sending service.
- Design a simple chat application.
- Design a simple task management system.
- Design a to-do application.
- Design a library management system.
- Design a parking lot system.
- Design a movie ticket booking system (like BookMyShow).
- Design a restaurant reservation system.
- Design a meeting-room booking system.
- Design a calendar application (like Google Calendar).
- Design a simple polling/voting system.
- Design a feedback/rating system.
- Design a basic blogging platform.
- Design a document storage system.
- Design a photo storage service (like Google Photos, basic).
- Design a contact management system.
- Design an employee management system.
- Design an API key management service.
- Design a feature flag service.
- Design a configuration management service.
- Design a simple log aggregation system.
- Design a health-check service.
- Design a simple job scheduler.
- Design a distributed cache.
- Design a distributed rate limiter.
- Design a token bucket rate limiter.
- Design a sliding-window rate limiter.
- Design a distributed lock.
- Design a leader-election system.
- Design a distributed ID generator.
- Design a service discovery system.
- Design a configuration service.
- Design a centralized logging system.
- Design a metrics collection system.
- Design a distributed tracing system.
- Design an event-driven architecture.
- Design a publish-subscribe system.
- Design a message broker.
- Design a Kafka-like system.
- Design a RabbitMQ-like system.
- Design a dead-letter queue system.
- Design a retry queue.
- Design a delayed message system.
- Design an exactly-once processing system.
- Design an idempotent payment API.
- Design an idempotent API gateway.
- Design a distributed scheduler.
- Design a cron-job platform.
- Design a workflow orchestration system.
- Design a distributed task queue.
- Design a webhook delivery system.
- Design an API gateway for microservices.
- Design a Backend-for-Frontend (BFF) architecture.
- Design a service mesh architecture.
- Design a circuit-breaker service.
- Design a distributed configuration cache.
- Design a global traffic routing system.
- Design a multi-region application.
- Design an active-active architecture.
- Design an active-passive architecture.
Related
- Solo system design practice, scored out of 10
- SDE-2 preparation plan
- Kafka interview questions
- Low-level design questions
- Mock interviews
Frequently asked questions
How do I start a system design answer?
Ask what the system must do and how big it is, write down the numbers (users, requests per second, storage), then sketch the simplest design that works and improve it where the numbers say it will break.
How much detail do interviewers expect?
Enough to defend each box: what it stores, how it scales and what happens when it fails. A short, correct design with clear trade-offs beats a long diagram you cannot explain.
Can I practise without a partner?
Yes. The practice page lets you answer a question by typing or speaking and scores how much of a strong design you covered. Your first three scored questions are free.