Queues - Increased limits for Queues pull consumers
1y ago
Source
CloudflareQueues - Increased limits for Queues pull consumerscloudflare.comQueues pull consumers can now pull and acknowledge up to 5,000 messages / second per queue . Previously, pull consumers were rate limited to 1,200 requests / 5 minutes, aggregated across all queues. Pull consumers allow you to consume messages over HTTP from any environment—including outside of Cloudflare Workers . They’re also useful when you need fine-grained control over how quickly messages are consumed. To setup a new queue with a pull based consumer using Wrangler , run: npx wrangler queues create my-queue npx wrangler queues consumer http add my-queue You can also configure a pull consumer using the REST API or the Queues dashboard. Once configured, you can pull messages from the queue using any HTTP client. You'll need a Cloudflare API Token with queues_read and queues_write permissions. For example: curl " ${ CF_ACCOUNT_ID } /queues/ ${ QUEUE_ID } /messages/pull" \ --header "Authorization: Bearer ${ API_TOKEN } " \ --header "Content-Type: application/json" \ --data '{ "visibility_timeout": 10000, "batch_size": 2 }' To learn more about how to acknowledge messages, pull batches at once, and setup multiple consumers, refer to the pull consumer documentation . As always, Queues doesn't charge for data egress. Pull operations continue to be billed at the existing rate , of $0.40 / million operations. The increased limits are available now, on all new and existing queues. If you're new to Queues, get started with the Cloudflare Queues guide .
You might also wanna read
Rately: Custom API Rate Limiting Service Built on Cloudflare
Rately is a new API rate limiting service that addresses the challenge of implementing custom rate limits based on parameters like user ID,
Cloudflare Workers Billing Risks: Developer Warns About Costly Overage Charges Without Usage Controls
The article discusses a developer's experience running an AI news aggregator (3mins.news) on Cloudflare Workers and the challenges with the
Why Adding More Servers Can Increase Response Times: The M/M/c Queueing Paradox
This article explores the counterintuitive behavior of the M/M/c queueing model, where increasing the number of servers (c) while keeping pe
brooker.co.za·15d ago
Developer Battles AWS-Based Bot Sending 2 Billion Monthly Requests
A developer is experiencing massive bot traffic from AWS Singapore, with a crawler identified as 'Mozilla/5.0 (compatible; crawler)' sending
Cloudflare Addresses CPU Performance Benchmarks for Workers Platform
Cloudflare investigated and responded to independent benchmarks by Theo Browne that showed Cloudflare Workers performing 3.5x slower than Ve

Comments
Sign in to join the conversation.
No comments yet. Be the first.