-
Notifications
You must be signed in to change notification settings - Fork 129
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
Make (long) polling of queues configurable #319
Comments
I just found out about this issue. I was using a RoundRobinQueue and it was super slow while it didn't process anything. Found out it was related to the When the queues are empty, it will just continue to the next message. But when there is >=1 message in the queue, it will always block for the default 5 seconds. @henrikbjorn @acrobat Any idea how to fix this? Should we pass a |
For the PersistentQueue this was covered by #326, not sure what is the deal with the RoundRobinQueue... |
Yes this is definitely something we need to dig in and fix. In a project of mine I've upgraded the lib from an early alpha version to the latest alpha and we had to create an custom legacy driver from one of the first alpha's to overcome queue delays. One solution could be to make the |
What about this? #339 :) |
Currently most (all?) drivers use a
$duration
parameter for thepopMessage()
function which defaults to 5 seconds. For (persistent queues) it would be nice if either:deqeue()
Rationale
While the 5 seconds might be great default behaviour, it is not when a large number of queues should be considered for processing any messages on the queue. This might happen when a message queue is used as a CommandBus / EventBus and each Command / Event has its own queue.
This typically results in "a lot" of queues which have low amounts of messages, but still take at least 5 seconds per queue to properly dequeue.
Current idea: https://github.com/holtkamp/bernard/tree/patch-indicate-polling-duration
The text was updated successfully, but these errors were encountered: