A fictional payment provider, Paystream, sends signed webhooks to the server. The receiver checks the signature, drops duplicates and acks right away. Two worker workflows then drain the queue, and each event runs in its own workflow. Everyone shares one inbox.
A webhook is an HTTP request a service sends you when something happens, such as a payment failing. You don't control the sender, so the receiver must check that each request is genuine, expect the same event more than once, and answer fast. Slow work goes to a background queue.
order.created. In Deliveries it goes
queued → processing →
done, and its three handler chips turn green one by one.customer.updated. sync-crm is tried 3 times (the chip shows ×3), then the
event lands in Dead letter. Untick the outage and press Redeliver: the same
workflow runs again and finishes.order.created or
payment.failed events. Email handlers often succeed on a retry. If one still ends up in
the dead letter queue, redeliver it: handlers that already succeeded show as skipped, so stock
isn't reserved twice.invoice.finalized. No handler is registered for it, so
the switch's default case just logs it (log-unhandled).Send an event to see the receiver's response.
The receiver is a real endpoint. Sign <timestamp>.<body> with HMAC-SHA256 and
the demo secret whsec_demo_microflow, and send it in the
paystream-signature header as t=<timestamp>,v1=<hex>.
GET /api/webhooks/state