-
Notifications
You must be signed in to change notification settings - Fork 153
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
Update_the_default_SubscriberDeliveryTaskCount #765
base: main
Are you sure you want to change the base?
Update_the_default_SubscriberDeliveryTaskCount #765
Conversation
There are 2 reasons that #450 has been around so long and probably should have been closed.
I think this functionality would actually be best served by having one an full example and adding documentation, not by changing the default. |
Hi @scottf |
So by documentation I mean a full sample and probably stuff in the readme. We know the project could certainly use more docs. |
Thanks for the contribution! I think the new default (1) is reasonable. This change would affect users who have a small number of subscribers and require extremely high throughput. This change should certainly be called out in release notes. Minor fix in the doc, otherwise LGTM! Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
0c470a3
to
d23577e
Compare
@MENNA123MAHMOUD Can you please look at |
Hi @scottf
The |
However now this test |
@MENNA123MAHMOUD Don't worry about TestUrlArgument. Not sure why it fails intermittently, I've been looking into it, but like you , it works fine on my machine. |
Signed-off-by: Menna Mahmoud <menna123mahmoud@gmail.com>
Co-authored-by: Christopher Watford <christopher.watford@gmail.com> Signed-off-by: Menna Mahmoud <menna123mahmoud@gmail.com>
Signed-off-by: Menna Mahmoud <menna123mahmoud@gmail.com>
Signed-off-by: Menna Mahmoud <menna123mahmoud@gmail.com>
6bf702e
to
61c902d
Compare
Hi @ColinSullivan1 @scottf |
@ColinSullivan1 I've been thinking about this a lot. I don't think we should change the default. The user can still change this because it's an option. |
@MENNA123MAHMOUD So there is one change that I definitely want and that's the change to SubChannelProcessor where you added the cancellation token. Would it be possible to make a PR just for that? This will allow us to get the improvement in and then continue considering how to address the rest of the problem. |
Sorry one more note about sharing the channel. Since you setup a pool per connection, right now you would have to keep making connections to have different groups of subscribers in different channel pools. |
This pull request is meant to solve this issue #450.
The added test was tried against different numbers of
SubscriberDeliveryTaskCount
, it takes around ~500 ms to process, leaving it to 0 (as was the default before) takes more than 1000 ms ( ~7000ms).