O'Reilly logo
  • Abhishek Singh thinks this is interesting:

Heartbeats are sent when the consumer polls (i.e., retrieves records) and when it commits records it has consumed.

From

Cover of Kafka: The Definitive Guide

Note

Where does the consumer commit the number of records it has consumed ? Also can we log it ??