I am trying to use Azure EventHub in order to process messages and it works fine as long as I have one sender and one consumer.
I simple make my consumer listen to a specific Consumer Grooup and all is fine
Now the problem is when I send different types of messages that I want processed by different Consumer Group I dont see how that can be done
I am creating my sender like this
private static EventHubProducerClient eventHubClient = new EventHubProducerClient(eventHubConnectionString, eventHubName);
But I find no way to tell it what Consumer Group it should send to, it simple sends to hub itself and that hub has multiple resource groups
How do I decide what consumergroup gets this message?
I googled for hours without finding the way to "map" input messages from specific senders to a specific output Consumer Group