Skip to content

feat: add support for RabbitMQ mandatory property #145

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

Conversation

luisgomez29
Copy link
Contributor

This PR introduces support for RabbitMQ's mandatory property in publishing operations. A new configuration option has been added, allowing developers to specify the behavior of the mandatory property when sending messages through:

  • Commands: DirectAsyncGateway
  • Events: DomainEventBus
  • Queries: QueryExecutor

When the mandatory property is set to true, if a message cannot be routed to any queue (e.g., because no binding matches the routing key), the RabbitMQ broker will return the message to the producer, showing a log. If set to false (the default behavior), the message is silently discarded.

Providing control over the mandatory property offers an immediate feedback mechanism for routing issues. This is essential in architectures where message delivery is critical and there is a need to proactively detect configuration or topology errors, thus preventing data loss.

@juancgalvis juancgalvis merged commit 70fc304 into reactive-commons:master Jul 28, 2025
1 check passed
@juancgalvis
Copy link
Contributor

🎉 This PR is included in version 5.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@luisgomez29 luisgomez29 deleted the feature/mandatory-property branch July 28, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants