Delivery, retries and limits

How coss.com retries, disables failing endpoints, recovers missed messages, and what it limits.

Retries

A delivery that fails (no 2xx response, a timeout, a network error) is retried after about 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours and 10 hours: 8 attempts over roughly a day, each a little earlier at random so that many failed deliveries don't retry at once. Then it is failed. Retry one by hand with coss.hooks.deliveries.retry(), or from the portal or dashboard.

Failing endpoints are disabled

When an endpoint's deliveries keep failing every attempt for 5 days, coss.com disables it. Its disabled_reason is failing, and your own webhook endpoints subscribed to hook_endpoint.disabled are told, so you can let your customer know. Enabling it again (in the portal, the dashboard or with coss.hooks.endpoints.update()) clears its record.

Recover what an endpoint missed

After an outage, requeue every delivery that failed since a time, once each, oldest first:

const { :  } = await ...("customer_8812", , {
  : new (.() - 6 * 60 * 60 * 1000),
});
// recovery.status is "pending" while coss.com requeues them in the background.

Limits

A send that goes over a quota fails with 429 quota_exceeded (a replay of an earlier send still answers). Deliveries over an endpoint's or a destination host's rate wait instead of failing. Contact support for higher limits.

Pricing

Each live message is $0.10 per 1,000 messages, charged once when it's accepted, however many endpoints it goes to. Retries, recoveries, test sends and sandbox environments are free, and so is a replay of an earlier send. The Free plan includes 50,000 hooks messages a month; past that a live send fails with 402 usage_limit_exceeded until the next month or an upgrade. Billing holds and budgets refuse live sends with 402 billing_hold and 402 budget_exceeded. See Billing.

Reputation

coss.com watches the share of live deliveries that fail for good. A very high rate warns your organization (see reputation): usually it means endpoints that no longer exist, which you should disable or delete. Sending is never suspended for it by default.

Last updated