Search⌘ K

Running a Single Consumer

Explore how to implement a single Kafka consumer that reads records from selected partitions using the assign API. Learn why and when to avoid consumer groups, how to commit offsets, and how to handle dynamic partition changes manually.

We'll cover the following...

So far, we have seen Kafka consumers run as part of a consumer group that automatically handles rebalances and assignment of partitions. However, there may be scenarios where you want to run a single consumer that reads records from all or just a few of the partitions of a topic. In ...