rwsdk-cloudflare-queues

Automate background task orchestration in Cloudflare Workers using Cloudflare Queues.

Updated Dec 26, 2025
One-click install
npx skills add https://github.com/kcc989/logoer --skill rwsdk-cloudflare-queues
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rwsdk-cloudflare-queues
Source: https://github.com/kcc989/logoer/tree/main/.claude/skills/rwsdk-queues
Command: npx skills add https://github.com/kcc989/logoer --skill rwsdk-cloudflare-queues

SYSTEM DOCUMENTATION & REQUIREMENTS

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

  1. Create a queue: npx wrangler queues create my-queue-name
  2. Configure wrangler.jsonc: { "queues": { "producers": [ { "binding": "QUEUE", "queue": "my-queue-name" } ], "consumers": [ { "queue": "my-queue-name", "max_batch_size": 10, "max_batch_timeout": 5 } ] } }
  3. After updating: Run pnpm generate
  4. Update Worker Export: export default { fetch: app.fetch, async queue(batch) { for (const message of batch.messages) { // Handle message } }, } satisfies ExportedHandler<Env>;

Frequently Asked Questions about rwsdk-cloudflare-queues

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I process background tasks in Cloudflare Workers without blocking user requests?

To process background tasks in Cloudflare Workers without blocking user requests, you can use Cloudflare Queues. This Skill automates queue creation and implements producer/consumer patterns for reliable, batched asynchronous processing.

How do I set up multi-queue orchestration in Cloudflare Workers?

Multi-queue orchestration in Cloudflare Workers is set up by configuring multiple producers and consumers in your wrangler.jsonc file. This Skill helps separate concerns by routing messages by type across different queues for various task workflows.

Can I use Cloudflare Queues for batch processing emails, payments, and AI tasks?

Yes, Cloudflare Queues support batch processing for emails, payments, AI, and image/video tasks. You configure max_batch_size and max_batch_timeout in wrangler, then implement an async queue(batch) consumer to handle grouped messages.

What is the best way to route messages by type in Cloudflare Queues?

The best way to route messages by type in Cloudflare Queues is by using multi-queue orchestration. You configure distinct queues for different task categories and implement message routing logic within your batch consumer to direct payloads appropriately.

Do I need wrangler to manage Cloudflare Queues?

Yes, you need wrangler to manage Cloudflare Queues. You must use the wrangler CLI to create queues and update wrangler.jsonc with the necessary queue bindings for both producers and consumers before generating your worker.

What message patterns does Cloudflare Queues support for varying payloads?

Cloudflare Queues support direct, R2, and KV message patterns to handle varying payloads. These patterns allow you to manage different data sizes and storage requirements when processing asynchronous background tasks.