feat(queue): async delivery via Cloudflare Queues with retry backoff and DLQ

This commit is contained in:
RhenCloud 2026-08-15 14:58:48 +08:00
parent 737dd7af98
commit 486f38365f
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
16 changed files with 702 additions and 22 deletions

View file

@ -29,4 +29,27 @@
"database_id": "214a0104-3235-47c0-b7bf-ddda95f3c8ac"
},
],
"queues": {
"producers": [
{
"binding": "QUEUE",
"queue": "webhooker-delivery"
}
],
"consumers": [
{
"queue": "webhooker-delivery",
"max_batch_size": 10,
"max_batch_timeout": 30,
"max_retries": 5,
"dead_letter_queue": "webhooker-delivery-dlq"
},
{
"queue": "webhooker-delivery-dlq",
"max_batch_size": 10,
"max_batch_timeout": 30,
"max_retries": 1
}
]
},
}