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

Make applying definitions thread safe #536

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Conversation

carlhoerberg
Copy link
Member

Remove the Channel which was only used for writing to the definitions file, and made fsync:ing async, and add a lock around modifyting @exchanges and @queues and the new @definitions_file

@github-actions
Copy link

github-actions bot commented Jun 26, 2023

Main benchmark
'Average publish rate: 50558.2 msgs/s'
'Average consume rate: 49408.7 msgs/s'

PR benchmark
'Average publish rate: 50784.7 msgs/s'
'Average consume rate: 49636.1 msgs/s'

Keep in mind, these numbers are not representative of LavinMQ's peak performance.
It is rather an indication of how the changes of this pull request affects the performance of the main branch.

Remove the Channel which was only used for writing to the definitions
file, and made fsync:ing async, and add a lock around modifyting
@exchanges and @queues and the new @definitions_file
@carlhoerberg carlhoerberg merged commit c7391df into main Jun 27, 2023
7 of 17 checks passed
@carlhoerberg carlhoerberg deleted the thread-safe-definitions branch June 27, 2023 11:24
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.

1 participant