5.8.0-beta.1 (2022-02-08)
Features Added
-
A new function
createEventDataAdapter
is exported that can convert anEventData
to a simple message withbody
andcontentType
fields. This adapter can be used with the Avro encoder in@azure/schema-registry-avro
starting from version 1.0.0-beta.6 to createEventData
messages with Avro-encoded bodies. -
When publishing events to Event Hubs, timeouts or other transient failures may introduce ambiguity into the understanding of whether a batch of events was received by the service. To assist in this scenario, the option to publish events idempotently has been added to
EventHubBufferedProducerClient
. The functionality can be enabled by setting theenableIdempotentPartitions
client option totrue
. If enabled, retries during publishing will attempt to avoid duplication with a minor cost to throughput. Duplicates are still possible but the chance of them occurring is much lower when idempotent retries are enabled. PR #20156