Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an option to slow down the pulling of messages from kafka topic when the consumer queue is full. #51

Open
ddaeyongee opened this issue Jan 4, 2022 · 1 comment
Assignees

Comments

@ddaeyongee
Copy link

hi.
My name is Taeyong Kang. I am working in the software architecture organization of LG CNS. I have a question while doing this MSA project, so I'm posting an issue.

I am looking at the potential issue of back-pressure i.e. fast producer and slow consumer. In this case, producer will be the component that will read messages from kafka topic.
Is there an option to slow down the pulling of messages from kafka topic when the consumer queue is full.
If yes, how is it effective to apply?

To implement this, I am using TPL data flow BufferBlock class. BufferBlock has a bounded capacity. If the component is not able to post messages to the buffer block, I want to slow down the kafka component that is pulling messages from topic. Please advice!

@cer cer self-assigned this Jan 4, 2022
@cer
Copy link
Contributor

cer commented Jan 4, 2022

See

and

eventuate.local.kafka.consumer.backPressure.low=5
eventuate.local.kafka.consumer.backPressure.high=100

The goal of the BackPressureConfig mechanism to 'slow down' the consumer so that it doesn't read (into memory) a large number of messages from a topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants