Event storage, distribution, replication, and offsets
Topic & Partition
A topic stores events across partitions. This example uses three partitions.
↔ Drag to explore
Principles and uses
Explore how topic events are distributed across partitions and read in order.
Ordering is per partition, not a total order across partitions.
Keys and partitioning configuration select partitions. Use shared keys for per-key ordering and partitions for parallelism. Retained events can be read by multiple groups.
Use it to plan event keys, partition counts, and ordering requirements.
Consumer Group
① Partition assignments by consumer
A consumer group shares the work across three topic partitions.
Compare eager and cooperative partition reassignment after membership changes.
Eager revokes all assignments; cooperative incrementally reassigns affected partitions.
The final assignment may be identical while interruption differs. Unchanged cooperative assignments can keep consuming.
Use it to understand consumption pauses during deployments and consumer scaling.
Log Compaction
Store profile changes as events. An address change appends a record rather than modifying an existing one.
TOPIC · user-profilescleanup.policy=compactState rebuilt from the logCONSUMERP001234567u42SeoulLog cleanerLatest per keyu42Seouloffset 0u7u91profile-svcRestartRecords needed to restore
↔ Drag to explore
Principles and uses
Follow log compaction that retains the latest record for each key.
Append updates first, then remove eligible older values during cleanup.
Existing offsets are not renumbered. Null-valued tombstones record deletion; actual cleanup follows configuration and timing.
Use it to understand state-recovery topics and keyed change logs.