I am trying to send huge amount of Data to an event hub. I am creating Batches of EventData using EventDataBatch. And sending it to the event hub. I was initially sending the batches using one EventhubClient
. Later I created var eventHubClientPool = new EventHubClient[MaxConnections];
And now I am sending each batch as eventHubClientPool[connectionId].SendAsync(ehBatch.ToEnumerable()));
Where connectionId = random.Next(MaxConnections);
How do I further increase the throughput?