mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 09:47:56 -05:00
An http or https notification was posted once and dropped on any failure. It is now retried, as SNS does, when the endpoint answers 5xx or 429 or cannot be reached, following the effective delivery policy: the subscription's healthyRetryPolicy, the topic's defaultHealthyRetryPolicy when overrides are disabled or the subscription sets none, and otherwise the default of 3 retries 20 seconds apart. The no-delay, pre-backoff, backoff and post-backoff phases, the delay targets and the backoff function are honoured, and retries are scheduled rather than slept on a thread. Any other answer is a permanent failure. A notification that fails permanently or runs out of retries goes to the subscription's RedrivePolicy dead-letter queue when one is set. Pending retries are bounded per message by the policy, as on AWS, and a reset, shutdown, Unsubscribe or DeleteTopic cancels them.