user3843858
user3843858

Reputation: 331

sending messages to Azure Event Hubs in .NET Standard to a specfic consumer group

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

Answers (1)

Mikhail Shilkov
Mikhail Shilkov

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

Related Questions