How can I create multiple EventHubClients that use multiple underlying TCP connects to allow fast writes to the EventHubs from a .net core web app?
In the programming guide for EventHubs (https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-programming-guide) it is written:
It is important to note that additional EventHubClient objects created from a messaging factory instance reuse the same underlying TCP connection. Therefore, these objects have a client-side limit on throughput. The Create method reuses a single messaging factory. If you need very high throughput from a single sender, then you can create multiple message factories and one EventHubClient object from each messaging factory.
And then they have a code sample:
var factory = MessagingFactory.CreateFromConnectionString("your_connection_string");
var client = factory.CreateEventHubClient("MyEventHub");
However, I dont know where / if there is a MessagingFactory in .Net core? Is it at all possible to do this from .Net core? I looked at Microsoft.Azure.ServiceBus but could not find any.