Study FAQ
When should I use a webhook, Azure Service Bus, or Event Hubs for Dataverse events?
Also asked as 2
- How do I pick a Dataverse event transport based on the consumer and outage tolerance?
- Which Dataverse event delivery option fits an HTTP receiver, a work backlog, or a stream?
Answer
Choose a webhook for direct HTTP delivery to a receiver that can handle the expected traffic, a Service Bus queue or topic for brokered work or separate subscriptions, and Event Hubs for a stream-processing destination with its own checkpoint and replay model. For work that follows a committed standard-table operation, prefer an asynchronous PostOperation registration.
| Need | Design consideration |
|---|---|
| One HTTP receiver | A webhook calls the receiver directly. Design durable intake and account for finite retries and a receiver outage. |
| A worker must catch up | A Service Bus queue persists messages for permitted receivers according to its configuration. Verify message lifetime with the worker stopped. |
| Multiple independent consumers | A Service Bus topic gives each subscription its own delivery and recovery path. |
| Existing analytics stream | An Event Hubs consumer owns its position and replay strategy. A stream read is separate from a business effect record. |
A relay contract can require an active listener. If you use a synchronous webhook to surface remote failure to the Dataverse caller, account for the remote dependency on the caller's path. An external effect that has already happened cannot be undone by a Dataverse rollback.
In an isolated environment, test an eligible update and a stopped receiver. Observe the Dataverse publication job and the destination's durable intake and work completion separately.
Microsoft references
Full explanation
AB-400: Publishing Dataverse Events to External Services
Study guide · AB-400
Read the full explanation