Kafka Architecture
Producers → [Topic (N partitions)] → Consumers
Topic "orders" with 3 partitions:
Partition 0: [msg1, msg4, msg7, ...] Leader: broker-1
Partition 1: [msg2, msg5, msg8, ...] Leader: broker-2
Partition 2: [msg3, msg6, msg9, ...] Leader: broker-3
Each partition is an ordered, immutable, append-only log. Consumers read from an offset; Kafka retains messages for a configurable period (not ephemeral like SQS).