feat(webhooks): implement BullMQ webhook delivery processor with HMAC signing, exponential backoff, and latency tracking - #145
Open
ayaoba24 wants to merge 3 commits into
Open
Conversation
feat(webhooks): add randomized jitter to exponential backoff for webhook retries
…ook retries (#2) Prevent thundering herd problems by adding 20% randomized jitter to the exponential backoff strategy used for webhook delivery retries. Delays now vary within ±20% of each attempt's base delay (e.g. attempt 1: 2000–2400ms, attempt 2: 4000–4800ms), staggering concurrent retries across subscribers. - Add backoff.util.ts with exponentialBackoffWithJitter and webhookBackoffStrategy - Register custom backoffStrategy on the BullMQ queue via settings - Add 11 unit tests for jitter calculations and BullMQ type compatibility Closes ASTROIDX556#125 🤖 Generated with Codebuff Co-authored-by: Buffy <noreply@codebuff.com>
|
MergeKeeper review Scope: in scope for linked issue The PR successfully implements the BullMQ webhook delivery backoff and jitter utility along with unit tests, perfectly aligning with issue #85 requirements. Reviewed commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of change
Related issue
Closes #85
Checklist
npm run buildpassesnpm testpassesnpm run lintpassesnpm run typecheckpasses