My use-case is as follows:
I have a kafka topic A
with messages "logically" belonging to different "services", I don't handle neither the system sending the messages to A
.
I want to read such messages from A
and dispatch them to a per-service set of topics on the same cluster (let's call them A_1, ..., A_n
), based on one column describing the service (the format is CSV-style, but it doesn't matter).
The set of services is static, I don't have to handle addition/removal at the moment.
I was hoping to use KafkaConnect
to perform such task but, surprisingly, there are no Kafka source/sinks (I cannot find the tickets, but they have been rejected).
I have seen MirrorMaker2
but it looks like an overkill for my (simple) use-case.
I also know KafkaStreams
but I'd rather not write and maintain code just for that.
My question is: is there a way to achieve this topic dispatching with kafka native tools without writing a kafka-consumer/producer myself?
PS: if anybody thinks that MirrorMaker2
could be a good fit I am interested too, I don't know the tool very well.