Skip to content

feat(webhooks): implement BullMQ webhook delivery processor with HMAC signing, exponential backoff, and latency tracking - #145

Open
ayaoba24 wants to merge 3 commits into
ASTROIDX556:mainfrom
ayaoba24:main
Open

feat(webhooks): implement BullMQ webhook delivery processor with HMAC signing, exponential backoff, and latency tracking#145
ayaoba24 wants to merge 3 commits into
ASTROIDX556:mainfrom
ayaoba24:main

Conversation

@ayaoba24

Copy link
Copy Markdown
Contributor

Summary

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation
  • CI / tooling

Related issue

Closes #85

Checklist

  • npm run build passes
  • npm test passes
  • npm run lint passes
  • npm run typecheck passes
  • No secrets added to tracked files
  • PR description explains the why, not just the what

ayaoba24 and others added 2 commits August 30, 2026 10:37
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

mergekeeper Bot commented Aug 30, 2026

Copy link
Copy Markdown

MergeKeeper review

Scope: in scope for linked issue #85.
Verdict: clean

The PR successfully implements the BullMQ webhook delivery backoff and jitter utility along with unit tests, perfectly aligning with issue #85 requirements.

Reviewed commit: b93f6519dd22ab5a18592a693c0002df237d98d8.
CI and merge eligibility are checked separately.

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.

Implement Webhook Delivery Queue Processor with Exponential Backoff and HMAC-SHA256 Signing

1 participant