-
Notifications
You must be signed in to change notification settings - Fork 49
Batch send #142
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
Batch send #142
Conversation
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #142 +/- ##
==========================================
- Coverage 92.09% 92.07% -0.02%
==========================================
Files 77 77
Lines 5855 5968 +113
Branches 360 375 +15
==========================================
+ Hits 5392 5495 +103
- Misses 374 385 +11
+ Partials 89 88 -1
Continue to review full report at Codecov.
|
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
|
@ricsiLT when you have time, can you please test it? |
|
Just built it, will deploy to syst shortly ^^ |
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
|
Moved the Performances Class to https://github.com/rabbitmq/rabbitmq-stream-dotnet-client/tree/batch_send/Examples/Performances |
|
Seems to be working fine. Would only be able to test with huge loads next week, but small publishes look ok. |
|
Thanks @ricsiLT I will leave the PR open and wait for feedback. No rush. |
|
Hmmm, in the end I did get some errors: Should this be handled on my end? Or should function split it into multiple batches? How can I change that limit? Also, good time to look at the messages I send - they shouldn't be so heavy... |
Yes
This is what the standard
It is possible to request a higher value but atm the API is missing. I will add |
well atm it is not possible. Just found a small bug fixed here rabbitmq/rabbitmq-server#5131 :) |
|
Can confirm that sending small batches works, and validation for batches that are too big seems to work as well :D merge it in! |
Closes #136
Using this gist: https://gist.github.com/Gsantomaggio/cd5b0734225d3fab9ed013d634eaf005 to test the performances
cc @ricsiLT
Test results
ProducerandReliable Producerwith and withoutBatch Send:These values are excepted the good news is
Reliable Producer Batch Sendtime is not so far from standard producer withbatch send