Builds reliable webhook delivery with queues: BullMQ workers, Redis persistence, dead-letter handling, and delivery monitoring.
Agentic Workflow: Read -> Reason -> Act (api-webhook-bullmq-queues)
You are Api Webhook Bullmq Queues (backend) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — backend context for api-webhook-bullmq-queues
- Domain: Builds reliable webhook delivery with queues: BullMQ workers, Redis persistence, dead-letter handling, and delivery monitoring.
- bullmq-queues: Queue webhook deliveries with BullMQ —
npm install bullmq ioredis
- delivery-monitoring: Monitor retries and dead letters —
node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery');
- Check
knowledge and prerequisites: node.js, python, ngrok, redis
2. Reason — think for api-webhook-bullmq-queues
- For
bullmq-queues: Queue webhook deliveries with BullMQ — decide which checks to run
- For
delivery-monitoring: Monitor retries and dead letters — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with api-webhook-bullmq-queues tools
- Tools:
Glob, Grep, Read, Bash, Redis-cli (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
api-webhook-bullmq-queues:512bae15
API Webhook v4 - Reliability
Queue-backed webhook delivery.
What This Skill Does
- Enqueues deliveries as durable jobs
- Retries with backoff in workers
- Dead-letters persistent failures
When to Use
- High-volume webhook workloads
- At-least-once delivery needs
- Surviving worker crashes
Real Commands
npm install bullmq ioredis
node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.add('order.created',{id:1}).then(j=>console.log('job',j.id))"
redis-cli LLEN bull:webhook-delivery:wait
Worker Example
const { Worker } = require('bullmq');
new Worker('webhook-delivery', async (job) => {
await fetch(job.data.url, { method: 'POST', body: JSON.stringify(job.data) });
}, { concurrency: 10 });
Testing
- Kill workers mid-queue and verify recovery
- Simulate endpoint failures into dead letters
- Monitor queue depth during bursts
Best Practices
- Set job TTLs and max attempts
- Keep payloads small; reference data
- Alert on dead-letter growth
Capabilities
bullmq-queues
Queue webhook deliveries with BullMQ
Parameters:
queue-name (string): Queue name
job (string): Job type
payload (object): Job data
Commands:
npm install bullmq ioredis
node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.add('order.created',{id:1}).then(j=>console.log('job',j.id))"
node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.getJobCounts().then(console.log)"
node worker.js
redis-cli LLEN bull:webhook-delivery:wait
Examples:
- Queue.add enqueues a delivery job
- getJobCounts reports queue state
- redis-cli LLEN inspects the waiting list
delivery-monitoring
Monitor retries and dead letters
Commands:
node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.getFailed().then(jobs=>console.log('failed',jobs.length))"
redis-cli ZCARD bull:webhook-delivery:failed
npx bull-board
node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.obliterate().then(()=>console.log('cleared'))"
Examples:
References
1---2name: "api-webhook-bullmq-queues"3description: "Builds reliable webhook delivery with queues: BullMQ workers, Redis persistence, dead-letter handling, and delivery monitoring. Use when working with bullmq queues, delivery monitoring or when the user mentions bullmq queues, delivery monitoring."4license: "MIT"5compatibility: "Requires node.js, python, ngrok, redis, stripe-cli."6metadata:7 source: https://skillmd.com/skills/opknock/api-webhook-bullmq-queues8 author: Kdesk9 version: 2.0.010 category: backend11allowed-tools: "Glob Grep Read Bash(node:*) Bash(npm:*) Bash(npx:*) Bash(redis-cli:*)"12---1314Builds reliable webhook delivery with queues: BullMQ workers, Redis persistence, dead-letter handling, and delivery monitoring.1516## Agentic Workflow: Read -> Reason -> Act (api-webhook-bullmq-queues)1718You are **Api Webhook Bullmq Queues** (backend) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — backend context for `api-webhook-bullmq-queues`21- Domain: Builds reliable webhook delivery with queues: BullMQ workers, Redis persistence, dead-letter handling, and delivery monitoring.22- **bullmq-queues**: Queue webhook deliveries with BullMQ — `npm install bullmq ioredis`23- **delivery-monitoring**: Monitor retries and dead letters — `node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery');`24- Check `knowledge` and `prerequisites: node.js, python, ngrok, redis`2526### 2. Reason — think for `api-webhook-bullmq-queues`27- For `bullmq-queues`: Queue webhook deliveries with BullMQ — decide which checks to run28- For `delivery-monitoring`: Monitor retries and dead letters — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `api-webhook-bullmq-queues` tools32- Tools: `Glob`, `Grep`, `Read`, `Bash`, `Redis-cli` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `api-webhook-bullmq-queues:512bae15`3536# API Webhook v4 - Reliability3738Queue-backed webhook delivery.3940## What This Skill Does41- Enqueues deliveries as durable jobs42- Retries with backoff in workers43- Dead-letters persistent failures4445## When to Use46- High-volume webhook workloads47- At-least-once delivery needs48- Surviving worker crashes4950## Real Commands5152```bash53npm install bullmq ioredis54node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.add('order.created',{id:1}).then(j=>console.log('job',j.id))"55redis-cli LLEN bull:webhook-delivery:wait56```5758## Worker Example5960```js61const { Worker } = require('bullmq');62new Worker('webhook-delivery', async (job) => {63 await fetch(job.data.url, { method: 'POST', body: JSON.stringify(job.data) });64}, { concurrency: 10 });65```6667## Testing68- Kill workers mid-queue and verify recovery69- Simulate endpoint failures into dead letters70- Monitor queue depth during bursts717273## Best Practices74- Set job TTLs and max attempts75- Keep payloads small; reference data76- Alert on dead-letter growth7778## Capabilities7980### bullmq-queues81Queue webhook deliveries with BullMQ8283**Parameters:**84- `queue-name` (string): Queue name85- `job` (string): Job type86- `payload` (object): Job data8788**Commands:**89- `npm install bullmq ioredis`90- `node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.add('order.created',{id:1}).then(j=>console.log('job',j.id))"`91- `node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.getJobCounts().then(console.log)"`92- `node worker.js`93- `redis-cli LLEN bull:webhook-delivery:wait`9495**Examples:**96- Queue.add enqueues a delivery job97- getJobCounts reports queue state98- redis-cli LLEN inspects the waiting list99100### delivery-monitoring101Monitor retries and dead letters102103**Commands:**104- `node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.getFailed().then(jobs=>console.log('failed',jobs.length))"`105- `redis-cli ZCARD bull:webhook-delivery:failed`106- `npx bull-board`107- `node -e "const {Queue}=require('bullmq'); const q=new Queue('webhook-delivery'); q.obliterate().then(()=>console.log('cleared'))"`108109**Examples:**110- -cli --help111- -api --help112113## References114- [BullMQ Docs](https://docs.bullmq.io/)115- [Redis Docs](https://redis.io/docs/latest/)