github Azure/azure-sdk-for-net Azure.Messaging.EventHubs.Processor_5.5.0-beta.1

latest releases: Azure.ResourceManager.ComputeSchedule_1.0.0-beta.1, Azure.Communication.Email_1.1.0-beta.2, Azure.Identity_1.12.1...
pre-release3 years ago

5.5.0-beta.1 (2021-06-08)

Acknowledgments

Thank you to our developer community members who helped to make the Event Hubs client libraries better with their contributions to this release:

Changes

New Features

  • When stopping, the EventProcessorClient will now attempt to force-close the connection to the Event Hubs service to abort in-process read operations blocked on their timeout. This should significantly help reduce the amount of time the processor takes to stop in many scenarios. (Based on a community prototype contribution, courtesy of danielmarbach)

  • When the EventProcessorClient detects a partition being stolen outside of a load balancing cycle, it will immediately surrender ownership rather than waiting for a load balancing cycle to confirm the ownership change. This will help reduce event duplication from overlapping ownership of processors.

  • The ConnectionOptions available when creating a processor now support registering a callback delegate for participating in the validation of SSL certificates when connections are established. This delegate may override the built-in validation and allow or deny certificates based on application-specific logic.

  • The ConnectionOptions available when creating a processor now support setting a custom size for the send and receive buffers of the transport.

Key Bug Fixes

  • The EventProcessorClient will now properly respect another another consumer stealing ownership of a partition when the service forcibly terminates the active link in the background. Previously, the client did not observe the error directly and attempted to recover the faulted link which reasserted ownership and caused the partition to "bounce" between owners until a load balancing cycle completed.

  • The EventProcessorClient will now be less aggressive when considering whether or not to steal a partition, doing so only when it will correct an imbalance and preferring the status quo when the overall distribution would not change. This will help reduce event duplication due to partitions moving between owners.

Don't miss a new azure-sdk-for-net release

NewReleases is sending notifications on new releases.