rwsdk-cloudflare-queues
CommunityOrchestrate async tasks in Cloudflare Workers.
Software Engineering#queues#cloudflare#wrangler#cloudflare-workers#background-tasks#asynchronous-processing#multi-queue
Authorkcc989
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Cloudflare Queues enable background task processing in rwsdk without blocking user requests and provide reliable, batched processing for asynchronous work.
Core Features & Use Cases
- Queue creation and management with wrangler
- Support for direct, R2, and KV message patterns to handle varying payloads
- Batch consumption and multi-queue orchestration for separation of concerns
- Message routing by type within or across queues
- Suitable for emails, payments, AI processing, image and video processing tasks
Quick Start
- Create a queue: npx wrangler queues create my-queue-name
- Configure wrangler.jsonc: { "queues": { "producers": [ { "binding": "QUEUE", "queue": "my-queue-name" } ], "consumers": [ { "queue": "my-queue-name", "max_batch_size": 10, "max_batch_timeout": 5 } ] } }
- After updating: Run pnpm generate
- Update Worker Export: export default { fetch: app.fetch, async queue(batch) { for (const message of batch.messages) { // Handle message } }, } satisfies ExportedHandler<Env>;
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rwsdk-cloudflare-queues Download link: https://github.com/kcc989/logoer/archive/main.zip#rwsdk-cloudflare-queues Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.