contentintech
Labs/Kafka Event Streaming

Kafka Event Streaming

Explore three partition logs, two independent consumer groups and three replicas. Change membership, commit offsets, restart consumers and stop brokers to understand how Kafka handles state and failure.

Inside an event log

orders · 3 partitions · replication factor 3

Same key → same partition.

P0 · Leader B1ISR 3/3 · billing C1
Key Boffset 0
Key Boffset 1
End: 2Position: 0Commit: 0
P1 · Leader B2ISR 3/3 · billing C2
Key Coffset 0
Key Coffset 1
End: 2Position: 0Commit: 0
P2 · Leader B3ISR 3/3 · billing C1
Key Aoffset 0
Key Aoffset 1
End: 2Position: 0Commit: 0
billing

Committed lag 6 · Redeliveries 0

analytics

Committed lag 6 · Redeliveries 0

Six events are stored. Poll billing to see each partition advance independently.

Try an experiment · model boundaries
  1. Poll billing, crash before committing, then poll again. Watch redeliveries increase.
  2. Commit, restart and poll. Previously checkpointed records are skipped.
  3. Switch to analytics: it has its own offsets over the same retained log.
  4. Use 4 consumers: one is idle. Stop 2 brokers: publishing is rejected.

This is a teaching simulation, not a Kafka connection. It uses a simple key hash, round-robin ownership, immediate replication/elections and offset-based progress. Real partitioners, rebalances, ISR membership, transactions and failure timing are more complex. No data is saved.

Read the complete Kafka lesson

Runs entirely in your browser — your data never leaves this page.

Section navigation