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

QQ: do not add x-delivery-count header for the first delivery. #7732

Merged
merged 3 commits into from
Mar 24, 2023

Conversation

kjnilsson
Copy link
Contributor

The x-delivery-count header only needs to be added when a message is redelivered. Adding it on the first delivery attempt is unnecessary, not recorded in the quorum queue documentation and causes additional work deserialising the binary basic properties data to add this header.

This could be notable for messages with substantial property data incl. heavy use of headers for example.

NB: there is a chance some client applications have a dependency on this header being there for the very first delivery.

The x-delivery-count header only needs to be added when a message is
redelivered. Adding it on the first delivery attempt is unnecessary,
not recorded in the quorum queue documentation and causes additional work
deserialising the binary basic properties data to add this header.

This could be notable for messages with substantial property data incl.
heavy use of headers for example.
@kjnilsson kjnilsson marked this pull request as ready for review March 24, 2023 12:47
ansd
ansd previously approved these changes Mar 24, 2023
@michaelklishin michaelklishin added this to the 3.12.0 milestone Mar 24, 2023
@michaelklishin michaelklishin merged commit 865fafd into main Mar 24, 2023
@michaelklishin michaelklishin deleted the qq-optimise-first-delivery branch March 24, 2023 14:42
michaelklishin added a commit that referenced this pull request Mar 24, 2023
QQ: do not add x-delivery-count header for the first delivery. (backport #7732)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants