Better Programming

Advice for programmers.

Follow publication

System Design Series: Apache Kafka From 10,000 Feet

Sanil Khurana
Better Programming
Published in
13 min readJan 4, 2023

--

image by author | background image by Jay Nemeth/Global-Newsroom

Problem Statement

Why Message Brokers Don’t Qualify

Message batching

Different consumers with different consumption requirements

Small, simple messages

Distributed high-throughput system

Large queues

Let’s Look at a System That Solves This Problem: Kafka

Topics

all remaining images like this one are by the author

Consumers

Producers

Consumer groups

Your cluster with a single consumer in the consumer group

Partitions

Why Would Kafka Work When RabbitMQ Didn’t?

Distributed high-throughput system

Small, simple messages and large topics

Message batching

Different consumers with different consumption requirements

Excerpts From the Original Kafka Paper

Trading complex features for high throughput

Simple storage

kafka log showing delete, reads, and append

Simple storage format

Conclusion

--

--

Sanil Khurana
Sanil Khurana

Written by Sanil Khurana

Software engineer who loves anything tech! Follow me on Linkedin for quick reads — https://www.linkedin.com/in/sanil-khurana-a2503513b/.

Responses (6)

Write a response