Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/pages/docs/platform/integrations/webhooks/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ Ably will retry failed `5XX` requests. If the response times out, Ably will retr

## Batched requests <a id="batched"/>

Batched requests are useful for endpoints that have the potential to be overloaded by requests, or have no requirement to process messages one-by-one.
Batched requests enable Ably to send more than one message at a time, which limits the rate of invocations of the webhook. They are useful for endpoints that have the potential to be overloaded by requests, or have no requirement to process messages one-by-one.

Batched requests are published at most once per second, but this may vary by integration. Once a batched request is triggered, all other events will be queued so that they can be delivered in a batch in the next request. The next request will be issued within one second with the following caveats:
Once a batched request is triggered, all other events will be queued so that they can be delivered in a batch in the next request. The next request will be issued with the following caveats:

* The actual rate of invocations depends on a few different factors, but essentially it is at most one per second from each of the separate instances in the Ably infrastructure that is processing the channels associated with that webhook.
* Only a limited number of HTTP requests are in-flight at one time for each configured integration. Therefore, if you want to be notified quickly, you should accept requests quickly and defer any work to be done asynchronously.
* If there are more than 1,000 events queued for a payload, the oldest 1,000 events will be bundled into this payload and the remaining events will be delivered in the subsequent payload. Therefore, if your sustained rate of events is expected to be more than 1,000 per second or your servers are slow to respond, then it is possible a backlog will build up and you will not receive all events.

Expand Down