-
Notifications
You must be signed in to change notification settings - Fork 10k
Updating queues pull consumer limits #21244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
cfa13f7
Removed http pull consumer limits
maheshwarip 0631f3c
Updated changelog
maheshwarip cba1d23
Added changelog entry
maheshwarip 9edbb96
Fixed typo
maheshwarip 0d9afc2
Improved phrasing
maheshwarip 6112d3e
Merge branch 'production' into pm-queues-http-pull
maheshwarip e31a3ce
Updated release notes
maheshwarip 9e5f092
Improved changelog entry
maheshwarip 1202122
Improved changelog entry
maheshwarip f491ff9
Improved text
maheshwarip 4a3c548
Modified text
maheshwarip 1353820
Updated release notes
maheshwarip d26bb4b
Small changes
maheshwarip 018b6dd
Updated rate limits
maheshwarip 3e71bd3
Improved changelog
maheshwarip 332933a
Updated changelog
maheshwarip 3535d1e
fixed typo
maheshwarip a5d5555
Updated changelog
maheshwarip efd3ce3
Fixed capitalization
maheshwarip 2e54e54
Improved language
maheshwarip 4585a54
Improved language
maheshwarip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/content/changelog/queues/2025-04-17-pull-consumer-limits.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| --- | ||
| title: Increased limits for Queues pull consumers | ||
| description: Queues now supports consuming up to 5,000 messages per second per queue over HTTP. | ||
| products: | ||
| - queues | ||
| date: 2025-04-17 12:00:00 UTC | ||
| --- | ||
|
|
||
| [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. | ||
|
|
||
| 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. | ||
|
|
||
| To setup a new queue with a pull based consumer using [Wrangler](/workers/wrangler/), run: | ||
| ```bash title="Create a queue with a pull based consumer" | ||
| $ 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](/api/resources/queues/subresources/consumers/methods/create/) or the Queues dashboard. | ||
|
|
||
| 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: | ||
| ```bash title="Pull messages from a queue" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May want to move this to our APIRequest component |
||
| curl "https://api.cloudflare.com/client/v4/accounts/${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](/queues/configuration/pull-consumers). | ||
|
|
||
| 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). | ||
maheshwarip marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend using
sh+ removing the placeholderSimilar to https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/vectorize/get-started/intro.mdx?plain=1#L99-L101