Skip to content
skillbld
Day 4 of 14 30 minPollingCommittingReplay

Learn how consumers read events in a poll loop, how they remember their place by committing offsets, where a brand-new consumer starts, and how to rewind and replay history.

By the end of today you can

  • Write a poll loop that reads events in batches
  • Explain the difference between a consumer's position and its committed offset
  • Commit offsets so a restarted consumer continues where it left off
  • Choose auto.offset.reset for new consumer groups
  • Replay events by seeking to an earlier offset

What's inside

  • 5 sections
  • 2 diagrams and mind maps
  • 5 code examples you can run
  • 5-question quiz
  1. 1The poll loop
  2. 2Position, committed offset and end
  3. 3Committing: remember where you got to
  4. 4Where does a new group start?
  5. 5Replaying history

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 4: Consumers & Offsets · Apache Kafka · SkillBld