Limiting requests to publisher on unordered blocking consumer #2196
Unanswered
AndreasPetersen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing a connector to Azure Service Bus using SmallRye Reactive Messaging 3.22.1. I want to be able to concurrently process a number of messages. I can do this by:
with the config:
This works almost as expected. Two messages are indeed processed concurrently, but requests are constantly being made to the publisher. My connector looks like this:
When starting my Quarkus service I can see in the logs:
How can I limit the subscriber to only request new items, when existing ones have been acked? I would expect the subscriber to request 2 items, process those two items, and then request another 2. Instead, the subscriber just constantly requests 1 item, resulting in my service not being able to keep up and eventually getting a variety of errors.
If the blocking annotation is ordered, then a new item is only requested once the current item has been acked.
Beta Was this translation helpful? Give feedback.
All reactions