cloudflare-queues

Manage asynchronous processing with Cloudflare Queues and Workers.

204|30|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/secondsky/claude-skills --skill cloudflare-queues-secondsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-queues
Source: https://github.com/secondsky/claude-skills/tree/main/plugins/cloudflare-queues/skills/cloudflare-queues
Command: npx skills add https://github.com/secondsky/claude-skills --skill cloudflare-queues-secondsky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and templates (resource) components.

What problem does it solve?

Cloudflare Queues enable reliable asynchronous processing, batch work, retries, and dead-letter handling for scalable task execution at the edge.

Core Features & Use Cases

  • Producer/consumer model for background processing
  • Batch processing with max_batch_size and max_batch_timeout
  • Retry strategies and dead-letter queues (DLQ)
  • Wide ranging use cases: email sending, analytics, order processing, data pipelines

Quick Start

Create a queue, add a producer, then deploy a consumer to process messages. Use DLQ for failed messages.

Frequently Asked Questions about cloudflare-queues

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

FAQPage Schema
How do I set up background jobs with Cloudflare Queues?

Background jobs with Cloudflare Queues use a producer-consumer pattern: create a queue, deploy a producer to send messages from your Workers, then deploy a consumer to process them. Messages are reliable and support retries with exponential backoff and dead-letter queues for failed items.

What's the best way to handle failed messages in asynchronous processing?

Dead-letter queues capture messages that fail after retries. Configure a DLQ alongside your main queue, set retry policies with exponential backoff, and monitor the DLQ to diagnose processing failures and prevent data loss.

Can I process messages in batches with Cloudflare Queues?

Yes, batch processing is built in. Set max_batch_size and max_batch_timeout to group messages and process them together, reducing overhead and improving throughput for workloads like analytics and order processing.

What are the limits for messages in Cloudflare Queues?

Individual messages are limited to 128 KB. For larger payloads, store the data in R2 and pass a reference through the queue, allowing you to process large files without hitting message size constraints.

How does Cloudflare Queues handle acknowledgement of processed messages?

Cloudflare Queues supports both explicit and implicit acknowledgement modes. Explicit mode gives you control over when messages are marked complete; implicit mode automatically acknowledges after successful consumer execution.

What use cases are best suited for asynchronous queues?

Queues excel at email sending, analytics aggregation, order processing, and data pipelines—any workload requiring reliable background execution, batching, or retry logic without blocking user responses.