// TOPIC

#messaging

8 articles

◆◆◆AdvancedAmazonLinkedIn
01

Design a Distributed Message Queue (Kafka)

Build a durable, partitioned, replicated commit log like Kafka — ordering, consumer groups, replication (ISR), and exactly-once.

#interview#messaging#distributed-systems
21 min
◆◆◆AdvancedGoogleMicrosoft
02

Design an Email Service (Gmail)

Send, receive, store, and search email for hundreds of millions of users. SMTP ingestion, sharded mailbox storage, full-text search, and spam filtering.

#interview#storage#search
23 min
◆◆◆AdvancedSlackMicrosoft
03

Design Slack (team chat at scale)

Channels, threads, presence, and search across huge workspaces. Real-time fan-out over WebSockets, the gateway problem, and read-state per user.

#interview#realtime#messaging
24 min
◆◆IntermediateStripeAmazon
04

Idempotency & Exactly-Once Semantics

Networks retry, so your operations will run twice. Idempotency keys, dedup, and why "exactly-once delivery" is a myth but "exactly-once effect" is achievable.

#distributed-systems#reliability#messaging
18 min
◆◆IntermediateConfluentNetflix
05

Change Data Capture (CDC) & the Outbox Pattern

Turn your database write log into a reliable event stream. Log-based CDC, the dual-write problem, and the transactional outbox.

#distributed-systems#data-pipelines#messaging
15 min
◆◆IntermediateMetaGoogle
06

Design a Notification System (Push, Email, SMS)

A reliable multi-channel notification platform — fanout, templates, dedup, rate limiting, and the realities of APNS/FCM.

#interview#notifications#messaging
14 min
◆◆◆AdvancedMetaDiscord
07

Design WhatsApp / Chat System

Realtime 1:1 and group messaging at billions-of-users scale. WebSocket gateways, message store, presence, end-to-end encryption.

#interview#realtime#websocket
16 min
◆◆Intermediate
08

Message Queues and Event Streams

Queues vs streams, Kafka in depth, delivery semantics, idempotency, dead-letter queues, schema registries, the outbox pattern, and stream processing fundamentals.

#messaging#asynchronous#kafka
17 min