Skip to content

[866] [INDEXER] Custom Webhook Retry Policy with Exponential Backoff & Circuit Breaker - #965

Open
orunganiekan wants to merge 1 commit into
SoroLabs:mainfrom
orunganiekan:feature/issue-866-indexer-custom-webhook-retry-policy-with-exponential-backoff-circuit-breaker
Open

[866] [INDEXER] Custom Webhook Retry Policy with Exponential Backoff & Circuit Breaker#965
orunganiekan wants to merge 1 commit into
SoroLabs:mainfrom
orunganiekan:feature/issue-866-indexer-custom-webhook-retry-policy-with-exponential-backoff-circuit-breaker

Conversation

@orunganiekan

Copy link
Copy Markdown
Contributor

Summary

Implements a resilient webhook dispatch system with background processing, retry handling, dead-letter storage, and destination-level circuit breaking.

What Changed

  • Added BullMQ/Redis-backed background webhook dispatching.
  • Added up to 5 retry attempts for failed webhook deliveries.
  • Added exponential backoff with jitter to reduce retry storms.
  • Added dead-letter handling for deliveries that permanently fail.
  • Added webhook destination failure tracking.
  • Added a rolling 1-hour failure-rate evaluation window.
  • Added circuit-breaker behavior that disables destinations when failure rates exceed 95%.
  • Added protection against repeatedly dispatching to unhealthy destinations.
  • Added tests covering retries, backoff, jitter, dead-letter handling, failure-rate calculation, and circuit-breaker behavior.

Testing

  • Ran webhook/indexer unit tests.
  • Ran the applicable broader test suite.
  • Verified successful delivery and failure/retry paths.

Issue

Closes #866

…oroLabs#866)

Add WebhookDispatcher with five-attempt exponential backoff and jitter,
destination circuit breaking, dead-letter storage, and optional BullMQ adapter.

Co-authored-by: Odung Aniekan <orunganiekan@users.noreply.github.com>
@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

@cursoragent is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@orunganiekan Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📊 [INDEXER] Custom Webhook Retry Policy with Exponential Backoff & Circuit Breaker

2 participants