Azure / azure-event-hubs-c

C client library for Azure Event Hubs https://azure.microsoft.com/services/event-hubs
Other
7 stars 18 forks source link

Allow senders to set partition id. #5

Closed piotrzaremba closed 7 years ago

piotrzaremba commented 7 years ago

Allow a sender to sent the partition id for a particular event hub.

piotrzaremba commented 7 years ago

I may have fixed my own problem. Correct me if I am wrong. In the send.c example the following string will give me direct partition access.

static const char* eventHubPath = "{eventHubName}/Partition/{partitionNumber}";

dcristoloveanu commented 7 years ago

Hi @piotrzaremba,

Sorry for the huge delay on this. That is correct, you can definitely access a specific partition like that if all your sends for one instance are supposed to go to one partition.

If you want to send specific messages to different partitions over the same sender, that is not yet supported in the C SDK. We'll consider that in the future.

I will close this issue.

Thanks, /Dan