Skip to main content

Notification Processing

Acknowledging notifications​

To acknowledge notification delivery, the receiving server returns an HTTP response with a 2xx status code (for example, 200 OK). The sender does not send new events until it receives an acknowledgment for the previous batch.

Response timeout: 100 seconds. The receiver must accept the batch of events and return an HTTP response within this time. Events do not need to be fully processed before the response is sent.

Asynchronous notification processing​

We recommend processing events asynchronously to prevent long-running operations from delaying delivery acknowledgments and subsequent events.

Recommended workflow

  1. Store all events from the received batch in reliable storage or a queue.
  2. Once the events are successfully stored, return an HTTP response with a 2xx status code (for example, 200 OK), without waiting for processing to complete.
  3. Process the stored events in the background.

If the events cannot be stored, do not return a 2xx response so that the sender retries delivery.

Event redelivery​

The same event may be delivered multiple times. For example, this can happen if the receiver successfully stores an event but the sender does not receive the acknowledgment.

To prevent duplicate actions, ensure idempotent event processing using eventId. This prevents previously processed events from triggering the same actions again.

Retry behavior​

If a delivery attempt fails, the system uses exponential backoff to increase the interval between retries and reduce the load on the receiving server.

  • Maximum retry interval: 24 hours.
  • Retry interval reset: A successful HTTP response (2xx) resets the retry interval to its initial value.
  • Delivery URL changes: Changing the delivery URL triggers an immediate retry. If the retry succeeds, the interval is also reset.