Skip to content
Theory · Kafka consumers · lesson 3 of 9

Committing offsets

A Kafka consumer reports on its own how far it has read: it commits an offset. When exactly it does so decides the outcome of a crash: some records are lost or come again. By default the client handles commits by itself, and this convenience has two dangerous windows.

In this lesson

  • What exactly gets committed
  • The poll loop
  • Auto-commit
  • Commit after processing
  • Common mistake
  • Key points