Skip to content

How to implement backpressure in custom input #3052

Answered by mihaitodor
fearfate asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @fearfate 👋 Hard to say without looking at the code, but, in general, the output dictates how many messages (or message batches) end up being in flight at any given time. You can also add a rate_limit processor to artificially throttle the flow. If your input buffers data preemptively, then it's up to you to make sure that buffer doesn't blow up. You could even use the API to access a configured rate limit inside your input and throttle message consumption based on it, but that's probably overkill.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fearfate
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