System design
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
Problem breakdowns, key technologies and core concepts for system design interviews. Free to read.
14 write-ups
| Title | Difficulty |
|---|---|
| Design WhatsApp A chat app for billions of phones: 1-1 and group messages over persistent connections, offline delivery, sent/delivered/read receipts, and a mobile client that survives flaky networks. | Medium |
| Design a Distributed Message Queue Build a queue service with partitions, replication, consumer groups, per-message acks, FIFO ordering and delayed delivery, durable enough that an acknowledged message is never lost. | Hard |
| Design a Notification Service Send push, email and SMS on behalf of every team in a company, respecting user preferences, filtering noise, escalating urgent alerts, and never losing a one-time code. | Medium |
| Design a Restaurant Order Aggregator Pull orders from DoorDash, Uber Eats and Grubhub into one tablet and the restaurant's POS, sync status back to each platform, and publish one menu everywhere. | Medium |
| Design a Webhook Delivery System Deliver events to thousands of customer endpoints with retries, signatures and isolation from slow receivers, plus an events API so a customer who missed deliveries can catch up. | Medium |
| Design Gmail Send and receive email with the rest of the internet over SMTP, store billions of mailboxes with attachments, organize them with labels, search them in under a second, and run a disposable inbox whose mail expires. | Medium |
| Design Slack Workspaces, channels and DMs with real-time delivery to every open client, unread state across devices, presence at scale, permission-aware search, and the Discord variant with million-member servers. | Hard |
| Kafka What you need to know about Apache Kafka for system design interviews, including topics and partitions, consumer groups, replication and the ISR, delivery guarantees, retention and compaction, and scaling. | |
| Amazon Kinesis What you need to know about Amazon Kinesis for system design interviews, including shards and their limits, partition keys, consumers and enhanced fan-out, the KCL, resharding, Firehose, and Kinesis vs Kafka. | |
| Amazon SQS and SNS What you need to know about Amazon SQS and SNS for system design interviews, including visibility timeouts, standard vs FIFO queues, dead-letter queues, SNS fan-out and filtering, and when to pick them over Kafka. | |
| Apache Pulsar What you need to know about Apache Pulsar for system design interviews, including stateless brokers over BookKeeper, segments, subscription types, multi-tenancy, geo-replication and tiered storage, vs Kafka. | |
| RabbitMQ What you need to know about RabbitMQ for system design interviews, including exchanges and routing, acknowledgements and prefetch, dead-lettering, quorum queues and streams, and how it differs from Kafka. | |
| Idempotency and Deduplication Why duplicates are unavoidable in distributed systems and how to make them harmless. Naturally idempotent writes, idempotency keys, consumer dedupe, Kafka and SQS guarantees, and "exactly once". | |
| Microservice Patterns When to split a system into services and how to wire them together. API gateways, backends for frontends, service discovery, sidecars and meshes, event-driven design, CQRS and splitting a monolith. |