Skip to main content
A server that is down for six hours should not make you lose events or open a support ticket. Routa retries, keeps what was not delivered and lets you replay it.

Retry policy

A delivery gets up to 8 attempts over about 20 hours, with growing delays and a random variation of ±20%.

What counts as success

  • A 2xx response within 10 seconds.
  • Anything else is a failure: another status, a timeout or a connection error. Routa does not follow redirects.
  • The response body is ignored. Routa reads at most the first 4 KB.

410 Gone

A 410 response is treated as permanent removal: the delivery is abandoned right away, without using up its attempts. Use 410 only if you really do not want that event anymore. Other 4xx responses (such as a temporary 401 from your authentication layer) are retried as usual.

Delivery states

Each combination of event and endpoint is a delivery (whd_...) with its own state. List the deliveries of an endpoint, filtering by state:
Each item shows attempt_count, next_attempt_at, last_response_status and last_error_code, which helps you understand why a delivery fails. Deliveries can be queried for 30 days.

Replay exhausted deliveries

After you fix your endpoint, replay what was left behind.
Only exhausted deliveries can be replayed. Any other state returns 409 webhook_delivery_not_replayable.

Automatic disabling

To keep the system from spending capacity on a dead endpoint, Routa disables an endpoint (status: "disabled_by_system") in either of these cases:
  • 100 consecutive failures; or
  • 24 hours without a single success, with at least 20 delivery attempts.
Pending deliveries stop, and the new status shows up on the endpoint and in the dashboard. Events are still recorded in the log, so nothing is lost. To re-enable it, call POST /v1/webhook_endpoints/{id}/enable. Re-enabling replays every exhausted delivery in a batch and responds with replayed_count, the number replayed.
You can also pause an endpoint yourself with POST /v1/webhook_endpoints/{id}/disable (status: "disabled_by_user"), during maintenance for example.

Endpoint status

The endpoint object carries consecutive_failures, last_success_at and last_failure_at so you can monitor its health.

Isolation

Webhook deliveries run on their own queue and workers. A slow endpoint of yours never delays message sending, yours or another customer’s. Each endpoint receives at most 8 deliveries at the same time. If its responses stay consistently above 5 seconds, Routa lowers this limit to 1 delivery at a time, until the endpoint answers fast again. Respond 2xx early and do the work afterwards. The webhook endpoint of a partner organization, which receives the events of all its customers, has a higher limit: 32 concurrent deliveries. See Organization webhook.