cloudflare-queues

Create and manage Cloudflare Queues with TypeScript and Wrangler CLI.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill cloudflare-queues-ovachiever
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-queues
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/cloudflare-queues
Command: npx skills add https://github.com/ovachiever/droid-tings --skill cloudflare-queues-ovachiever

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides complete guidance for building and managing asynchronous queues on Cloudflare Workers using Cloudflare Queues, including producers, consumers, DLQs, retries, batching, and advanced patterns.

Core Features & Use Cases

  • Queue creation, producers, and consumer bindings
  • Batch processing, max batch size, and batch timeouts
  • Retry strategies (exponential backoff) and DLQ patterns
  • Explicit acks, message metadata, and observability
  • Production-ready patterns for rate-limited APIs and batch workloads

Quick Start

Create a queue, configure a producer/consumer, and deploy a minimal consumer to process queued tasks.

Frequently Asked Questions about cloudflare-queues

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

FAQPage Schema
How do I build asynchronous background tasks with Cloudflare Workers?

Cloudflare Queues enables asynchronous task processing on Workers by decoupling producers that push messages from consumers that process them. Create a queue, bind it to your Worker, send tasks from a producer, and deploy a consumer handler to process batches with built-in retry and error handling.

What's the best way to handle retries and failed messages in Cloudflare Queues?

Cloudflare Queues supports exponential backoff retries and dead-letter queues (DLQs) for messages that exceed retry limits. Configure retry policies in your queue, route failures to a DLQ for inspection, and implement explicit acknowledgment to control when messages are marked complete.

Can I batch process messages with Cloudflare Queues?

Yes. Cloudflare Queues batches messages up to a configurable max batch size with timeout-based delivery, allowing you to group and process multiple tasks together. This reduces overhead and improves throughput for rate-limited APIs and large workloads.

What are the constraints when using Cloudflare Queues?

Messages in Cloudflare Queues are limited to 128 KB each. Plan message size, batch window, and throughput accordingly; oversized payloads will be rejected and require payload restructuring or external storage references.

How do I deploy and manage queues with Cloudflare Workers?

Use Wrangler CLI to define queues in wrangler.toml, bind them to Workers, and deploy producer and consumer code together. Wrangler handles queue provisioning, binding configuration, and local development.

Does Cloudflare Queues support explicit message acknowledgment?

Yes. Explicit acknowledgment lets you control when messages are marked complete, enabling robust error handling. Ack or retry messages based on processing results; unacknowledged messages are redelivered after the batch timeout.