The Kafka Consumer API

Learn how to receive messages from Kafka using the Consumer API.

Introduction to Kafka consumers

Kafka consumers are responsible for reading data from one or more Kafka topics and processing it in some way. The process of consuming data from Kafka can be broken down into several distinct steps:

  1. Subscribing to topics

  2. Polling for messages

  3. Processing messages

  4. Committing offsets

Get hands-on with 1300+ tech skills courses.