-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
clarify delivery concurrency is per client #57
Conversation
This is not true. Delivery concurrency is for the whole broker, and the limit is on the fan in, not on the fan out. |
and how this is achieved by |
@mcollina Can you clarify me on this man? |
A piece of code is probably worth more :).
is needed to avoid a bad warning. Nothing more. It's set to twice the max concurrency, just because I had to account for QoS 1/2 messages. regarding the actual concurrency limit, this is is: |
It is also invoked in mqemitter-redis: https://github.com/mcollina/mqemitter-redis/blob/master/mqemitter-redis.js#L33. |
Now it makes sense, thank you :) implementation shows the limit is number of |
Would you mind sending a PR against the README? It might be helpful to others. |
and this means the max number of messages delivered concurrently may be higher than conncurrency!? in current implementation. Yes? |
concurrency is the number of unique messages being delivered, not considering the number of clients we are delivering them to. |
But here https://github.com/mcollina/mqemitter/blob/master/mqemitter.js#L126 current is incremented per _do, despite the actual matches size!!! |
there is no check on the matches, the check is on the message that is being published, not on the messages it is being delivered. |
Exactly! and hence we need to emphasize the word unique message, and may be change the word delivered to |
Published is a good term I think. PR? |
👍 Yup, will create one. |
No description provided.