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

DBZ-8752 New property rabbitmq.routingKey.source for static, topic an… #161

Merged

Conversation

victorcastanogutierrez
Copy link
Contributor

…d key states

Related issue: https://issues.redhat.com/browse/DBZ-8752

This PR adds support for a new property on the RabbitMQ sink debezium.sink.rabbitmq.routingKey.source. The motivation is to allow not only producing to desired exchange based on the outbox table, but also being able to dynamically select the routing key from the same table.

For that, this new property has the following possible values:

  • static (default): which will obtain the routing key from debezium.sink.rabbitmq.routingKey
  • topic: uses the value of the destination exchange as the routing key
  • key: uses the record key as the routing key

debezium.sink.rabbitmq.routingKeyFromTopicName is now deprecated as debezium.sink.rabbitmq.routingKey.source with topic value does the same thing. If set to true, a warn will be emitted and the value of debezium.sink.rabbitmq.routingKey.source will become topic in order to provide backwards compatibility

@Naros
Copy link
Member

Naros commented Mar 8, 2025

Hi @victorcastanogutierrez could you open a PR in the main repository with changes to the documentation about the new configuration changes?

@victorcastanogutierrez
Copy link
Contributor Author

Sure thing, will do it as soon as I can

@jpechane jpechane merged commit 4be7ed5 into debezium:main Mar 10, 2025
3 checks passed
@jpechane
Copy link
Contributor

@victorcastanogutierrez Applied, thanks!

@victorcastanogutierrez
Copy link
Contributor Author

Thank you!

@victorcastanogutierrez
Copy link
Contributor Author

Docs PR debezium/debezium#6219

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.

3 participants