ExitAmazon MSK: Kafka's partitioned log1 / 9
Explanation

A topic combines records, not global order

How producers and consumer groups use Kafka topics, partitions, and offsets to combine streams, distribute records, and replay retained data. · associate

Amazon MSK runs Apache Kafka clusters for applications. A producer publishes records to a named topic, such as orders. Several producers can publish to the same topic: this is fan-in. It brings their records into one named stream, but does not automatically join or aggregate their contents.

A topic is divided into partitions. Each partition is an append-only log, and each appended record receives an offset: its position within that partition. Kafka preserves log order within a partition, not across the entire topic. Offset 12 in partition P0 and offset 12 in partition P1 identify different records.

The producer's partitioning logic selects a partition. A common choice is to use an order ID as the record key. With consistent key-based partitioning and an unchanged partition count, records with the same key go to the same partition. This keeps that order's events in one log; it does not sort events by their timestamps.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.