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

Better performance on publisher confirms in transaction #40

Merged
merged 1 commit into from
Jan 29, 2019
Merged

Better performance on publisher confirms in transaction #40

merged 1 commit into from
Jan 29, 2019

Conversation

kyrrem
Copy link
Contributor

@kyrrem kyrrem commented Jan 29, 2019

When sending multiple messages in a rebus transaction, it takes a lot of time to confirm each message individually. Since we are reusing the same IModel from the current transaction, it should be safe to confirm all messages in one go. The performance difference when running inside a rebus transaction is huge.

Batch confirms is also recommended from the RabbitMQ webside due to performance and latency.

I extended the current performance tests to also run in transaction to be able to compare side by side.


Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.

@CLAassistant
Copy link

CLAassistant commented Jan 29, 2019

CLA assistant check
All committers have signed the CLA.

@mookid8000
Copy link
Member

Perfect! Great work, thanks 👍

@mookid8000
Copy link
Member

it'll be out in Rebus.RabbitMq 5.0.1 in a few minutes

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

Successfully merging this pull request may close these issues.

None yet

3 participants