Resending webhook mechanism

Modified on Mon, 15 Apr 2024 at 08:47 AM

Note:
This mechanism is applicable if the user has the “Retry if error” checkbox checked in the webhook (checked by default).

 

 

Step 1: Record unsent webhook in the database

When your webhook fails to reach its target for some reason, it is recorded in the table with a note about the failed dispatch.

Step 2: Record retry attempts

The number of retry attempts for each unsent webhook is recorded separately.

Step 3: Attempt to resend the webhook

When a webhook is queued for resend, it is processed. The resend happens according to the following algorithm:

  1. The delay time before each retry is calculated using the formula: 2^n, where 2 is the number of seconds, n is the retry attempt number.
  2. The value of n reaches a maximum limit of 5 attempts, after which, in the case of 5 unsuccessful dispatches, the webhook will no longer attempt to resend.
  3. Approximately 9 hours pass between the 14th and 5th dispatch attempts.
  4. In total, approximately 18 hours are spent for 5 retry attempts.



 

Also see:

WebHooks

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article