|
| 1 | +--- |
| 2 | +title: Increased limits for Queues pull consumers |
| 3 | +description: Queues now supports consuming up to 5,000 messages per second per queue over HTTP. |
| 4 | +products: |
| 5 | + - queues |
| 6 | +date: 2025-04-17 12:00:00 UTC |
| 7 | +--- |
| 8 | + |
| 9 | +[Queues pull consumers](/queues/configuration/pull-consumers/) can now pull and acknowledge up to **5,000 messages per second per queue**. Previously, pull consumers were rate limited to 1200 requests / 5 minutes, aggregated across all queues. |
| 10 | + |
| 11 | +Pull consumers allow you to consume messages over HTTP from any environment—including outside of [Cloudflare Workers](/workers). They’re also useful when you need fine-grained control over how quickly messages are consumed. |
| 12 | + |
| 13 | +To setup a new queue with a pull based consumer using [Wrangler](/workers/wrangler/), run: |
| 14 | +```bash title="Create a queue with a pull based consumer" |
| 15 | +$ npx wrangler queues create my-queue |
| 16 | +$ npx wrangler queues consumer http add my-queue |
| 17 | +``` |
| 18 | +You can also configure a pull consumer using the [REST API](/api/resources/queues/subresources/consumers/methods/create/) or the Queues dashboard. |
| 19 | + |
| 20 | +Once configured, you can pull messages from the queue using any HTTP client. You'll need a [Cloudflare API Token](/fundamentals/api/get-started/create-token/) with `queues_read` and `queues_write` permissions. For example: |
| 21 | +```bash title="Pull messages from a queue" |
| 22 | +curl "https://api.cloudflare.com/client/v4/accounts/${CF_ACCOUNT_ID}/queues/${QUEUE_ID}/messages/pull" \ |
| 23 | +--header "Authorization: Bearer ${API_TOKEN}" \ |
| 24 | +--header "Content-Type: application/json" \ |
| 25 | +--data '{ "visibility_timeout": 10000, "batch_size": 2 }' |
| 26 | +``` |
| 27 | + |
| 28 | +To learn more about how to acknowledge messages, pull batches at once, and setup multiple consumers, refer to the [pull consumer documentation](/queues/configuration/pull-consumers). |
| 29 | + |
| 30 | +As always, Queues doesn't charge for data egress. Pull operations continue to be billed at the [existing rate](/queues/platform/pricing), 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](/queues/get-started). |
0 commit comments