Skip to content

Set message durable as default #46

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

Merged
merged 3 commits into from
May 20, 2025
Merged

Set message durable as default #46

merged 3 commits into from
May 20, 2025

Conversation

Gsantomaggio
Copy link
Member

@Gsantomaggio Gsantomaggio commented May 20, 2025

  • Set the message durable by default
  • Given this PR the client sends the durable=true by default.
  • The user can always decide to set durable=false btw

Signed-off-by: Gabriele Santomaggio <[email protected]>
releaded to rabbitmq/rabbitmq-server#13918

Signed-off-by: Gabriele Santomaggio <[email protected]>
@Gsantomaggio Gsantomaggio changed the title set durable as default Set message durable as default May 20, 2025
@Gsantomaggio Gsantomaggio marked this pull request as ready for review May 20, 2025 12:29
@ansd ansd self-requested a review May 20, 2025 12:53
Copy link
Member

@ansd ansd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, the PR looks good to me.

I'm not sure whether we need the new function NewMessageWithPersistence. I personally would leave it out to keep the API minimal.
If you decide to keep this function, maybe it's worth using the same naming as in the AMQP spec, that is "durable" instead of "persistence".

releaded to rabbitmq/rabbitmq-server#13918

Signed-off-by: Gabriele Santomaggio <[email protected]>
@Gsantomaggio Gsantomaggio merged commit ebc9a34 into main May 20, 2025
1 check passed
@Gsantomaggio Gsantomaggio deleted the set_durable_true branch May 20, 2025 13:11
@Gsantomaggio Gsantomaggio added this to the 0.1.0 milestone May 26, 2025
@Gsantomaggio Gsantomaggio added the enhancement New feature or request label May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants