Skip to content

strategy for lagging consumers #11145

Answered by rockwotj
pdeva asked this question in Q&A
Jun 1, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

One potential solution:

Kafka/Redpanda allows for reading specific offset (position in the log) ranges. You could update consumer CA to start reading from "now". Then you have a missing range in the log that hasn't been consumed, you could spin up additional consumers to read just the sections of logs that haven't been processed.

There are situations where this doesn't work (i.e. you must process messages in order, etc). Happy to help with more specifics on how to do this in your given environment/language.

Another solution is to increase the number of partitions, then spin up new consumers to handle the existing load so that the consumer for partition A can catch up. When you've caught u…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pdeva
Comment options

@rockwotj
Comment options

@pdeva
Comment options

@rockwotj
Comment options

Answer selected by rockwotj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants