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

Option to listen to multiple queues in parallel instead of in sequence #3

Open
ryanwitt opened this issue Mar 23, 2017 · 1 comment

Comments

@ryanwitt
Copy link
Member

Right now, qdone listens on one queue for --wait-time seconds, then moves on to the next queue.

We could get lower latency by listening to all queues, returning when we find data on any of them, and abort()ing the listen requests to the other queues.

This could potentially starve queues if one consistently wins the race for returning data first.

@ryanwitt
Copy link
Member Author

To some degree, the latency problem can be minimized by using the new --active-only flag in 1.3.0, since it listens only to queues that had data available at the beginning of the listening round.

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

No branches or pull requests

1 participant