Oh My AlgorithmOh My Algorithm
LibraryKOEN

Catalog

Home/Algorithms/Kafka
🪵Infrastructure & DevOps

Kafka Algorithms

Event streams flowing through an append-only log. Learn the 2 topics below step by step with interactive visualizations.

🪵Topic & Partition

A Kafka topic isn't a queue — it's a log you only ever append to. The topic is split into partitions, each record is appended to the end of one, and the position it lands in becomes its offset. Multiple partitions mean parallel writes and reads, but ordering is only guaranteed inside a single partition. That's exactly why records sharing a key always land in the same one.

Append-only Log · Ordering
🪵Consumer Group

A consumer group is how several consumers split one topic between them. Within a group each partition is assigned to exactly one consumer, so adding consumers raises throughput — until you pass the partition count, at which point the extras sit idle. Each consumer commits offsets for the partitions it owns, and a different group reads the same data on its own independent schedule.

Partition Assignment · Parallel Consumption
O-M-A/© 2026 OH MY ALGORITHM
PrivacyTerms