The Runtime Theory
System DesignIn production

Message Queue Design: Topics, Consumer Groups, and Delivery Guarantees

Recording in progress
#message-queues#kafka#architecture

The mechanics of a message broker, from the moment a producer appends to a partition to the moment a consumer commits an offset. We trace messages through topics, partitions, consumer groups, and replay, and we inject the failures the docs gloss over: a consumer that crashes mid-batch, a broker that loses an ack, and a rebalance that assigns the same message twice. The whole video is about what "at-least-once" actually means on the wire — which side of the broker the duplicates come from, and what you must build on the consumer side to absorb them.

Topics covered:

  • Topics, partitions, and where ordering actually holds
  • Consumer groups and rebalancing
  • Delivery semantics: exactly-once vs the rest
  • Producer acks and the data-loss window
  • The idempotent consumer pattern

Related articles

More in System Design

09:03
system design

Load Balancers, Explained

Layer 4 vs layer 7, health checks, stickiness, and the failure modes behind the most trusted box in your architecture diagram.

Watch
In production
system design

Search System Design: Inverted Indexes, Tokenization, and Ranking

How a search system actually works — inverted indexes, tokenization, relevance ranking, and the pipeline between a keystroke and ranked results.

Details
In production
system design

Notification System Design: Fanout, Retries, and Delivery Channels

Designing a notification system — provider abstraction, fanout, retry policies, and how push, email, and SMS channels fail differently.

Details
In production
system design

Chat System Design: WebSockets, Presence, and Message Ordering

Designing a chat system — WebSocket connections, message ordering, presence, and what happens to undelivered messages when a client goes offline.

Details
In production
system design

Rate Limiter Design: Token Bucket, Sliding Window, and Distributed Limits

How rate limiters actually work — token bucket, fixed window, sliding window, and what breaks when the limiter spans multiple machines.

Details
In production
system design

URL Shortener System Design: Encoding, Storage, and Redirects

Designing a URL shortener — base62 encoding, ID generation, redirect caching, and how the write and read paths differ in scale.

Details
In production
system design

Database Replication Topologies Visualized: Leader, Multi-Leader, and Quorum

How database replication topologies actually work — single leader, multi leader, quorum, and what happens to reads and writes when a node fails.

Details
In production
system design

Caching Strategies: Cache Aside, Write Through, and Cache Invalidation

How caching strategies actually work in production systems — cache aside, read through, write through, write back, and where stale reads come from.

Details
In production
system design

Load Balancer Algorithms: Round Robin, Least Connections, and Hashing

How load balancer algorithms actually distribute requests — round robin, least connections, IP hashing, and the trade-offs each one makes.

Details

Depth, delivered weekly

One technical dispatch a week — articles and episode notes before they go public.

One technical dispatch per week. No noise.