Skip to main content

DELIVERY_ID_HEADER

Constant DELIVERY_ID_HEADER 

Source
pub const DELIVERY_ID_HEADER: &'static str;
Expand description

The A2A-Delivery-Id header: one id for one event sent to one webhook, the same on every attempt of it.

A receiver that has handled an id and sees it again knows the sender is retrying (the first attempt may have been processed and its answer lost) and can answer without handling the event twice. The id is not kept across a restart of the sender and is not shared between the paths that can send the same event, so it deduplicates retries, not every duplicate; delivery is at most max_attempts tries held in memory, and an event still being retried when the process stops is lost.