-
Notifications
You must be signed in to change notification settings - Fork 1k
add the ability to have the type in the routing key for rabbitmq prod… #1394
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
base: master
Are you sure you want to change the base?
Conversation
i'm fine with this. chance you could refactor the rabbitmq and kafka/kinesis producer to use common code for interpolation here so that everyone can bask in the glory of your cheeky feature? |
haha, thanks for getting back so soon! sure i'll see if i can make the same changes for the kafka/kinesis producers |
…ating the topic/channel
Hi @osheroff, I've done another commit, this includes the Kafka topic change but I couldn't find anything relating to the topics for Kenisis. You've not asked for it but I've also made the change to the Redis producer to do the same. |
ah @paulhoang-hee, sorry, I was not specific enough. Can you make it so that the kafka and the redis producer actually share code to do the interpolation? thx! |
…nt. Gives a default implementation so that procuders can builder topic/channel(destination) strings
Hi @osheroff, no need to apologise. I've pushed another commit so that the Redis and Kafka producers share the same code. I was initially going to pull up the method into the Abstract class but then that would affect the 5+ or so other classes that extend it. I then thought about moving it to a So I ended up created an interface with a default method. If this doesn't make sense please let me know. I also found it hard naming it so if you want that changed too, please let me know (naming things is hard) |
why not just an instance method on |
…nd rabbit producers and moved the default method to build the destination String into the RowMap class
Hi @osheroff . I've moved the implementation to the RowMap class and deleted the previously created Interface. Most of it went smoothly but the |
Just noticed travis came back with a broken build, guess I'll have to fix that first |
…ucer
This is rather a cheeky PR, its a small tweak to an existing feature for the RabbitMQ routing keys.
It would be really helpful for our team to have the ability to include the type of message in the routing key as we route our messages in the format [system].[entity(table)].[event(type)].