Reputation: 331
i have requirement data coming from different country
like country-a- Consumer Group-a country-b -Consumer Group-b
i use this example given in site https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-standard-getstarted-send
in given code where i put my consumergroup name
Upvotes: 0
Views: 474
Reputation: 35134
You can't send events to just one consumer group: that goes against the principle of Event Hubs (and similar pub-sub services).
Instead, you need to choose between sending to separate event hubs (split on producer side) or filter events on consumer side. You could partition your events on country, if that makes sense for your use case.
Upvotes: 1