forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Event Hub Client] Expiring transport producers Azure#8592 (Azure#9431)
The focus of these changes is to add a pool for transport producers used by the EventHubProducerClient which manages their lifespan using a sliding time window approach. Authored-by: Alberto De Natale <[email protected]>
- Loading branch information
1 parent
99f0a09
commit b2c31ed
Showing
9 changed files
with
1,542 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
355 changes: 355 additions & 0 deletions
355
sdk/eventhub/Azure.Messaging.EventHubs/src/Core/TransportProducerPool.cs
Large diffs are not rendered by default.
Oops, something went wrong.
236 changes: 123 additions & 113 deletions
236
sdk/eventhub/Azure.Messaging.EventHubs/src/Producer/EventHubProducerClient.cs
100755 → 100644
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
681 changes: 652 additions & 29 deletions
681
sdk/eventhub/Azure.Messaging.EventHubs/tests/Producer/EventHubProducerClientTests.cs
100755 → 100644
Large diffs are not rendered by default.
Oops, something went wrong.
390 changes: 390 additions & 0 deletions
390
sdk/eventhub/Azure.Messaging.EventHubs/tests/Producer/TransportProducerPoolTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.