Kafka Partition Keys #1956
JonathanWillis
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, a few years back I rolled my own Kafka Producer/Consumer library for pulling messages from a topic and dispatching to Command/Event Handlers, and its all setup with 1 line, with the rest done by reflection at start up. I've been considering to swap it out for a more battle tested library, but as mass transit has gone commercial, I looked at Brighter and Wolverine. I've found that Brighter doesn't support multiple message types per topic, so its left me to investigate wolverine.
The issue I came across is the only way I could see that you can set partition key is via the Delivery options, such as
I felt this was not ideal, and more suited to use case specific overrides.
I did try the MessagePartitioning but found this was internal, and had no effect on Kafka producers
I see we can add outgoing rules, so as an idea I put these in.
I'm torn between preferring 2 and 3, but throwing it out there as an idea.
Beta Was this translation helpful? Give feedback.
All reactions