Search
Setup for Free
CD
Cloudflare Developers
•
16mo ago
•
2 replies
micooz
Queue "consumer concurrency" feature
Queue
"consumer concurrency
" feature does not seem to be suitable for scenarios that rely on sequential execution
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,498
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
M
micooz
OP
•
9/8/24, 5:23 PM
For example
,
I have some subtasks that need to be executed in sequence
, each task wraped into a queue message and will take a long time to finish
:
1
,2
,3
,4
,5
,6
max
_batch
_size
= 2
max
_concurrency
= 2
Queue will create two consumer workers to handle those messages concurrently
:
1
,2
-
> worker
-1
3
,4
-
> worker
-2
5
,6 pending
so 3
,4 may be excuted earlier than 1
,2
:
3
,4
,1
,2
,5
,6
this breaks the original sequence
.
M
micooz
OP
•
9/8/24, 5:39 PM
The docs
:
https://developers.cloudflare.com/queues/configuration/consumer-concurrency/
Cloudflare Docs
Consumer concurrency | Cloudflare Queues
Consumer concurrency allows a consumer Worker processing messages from a queue to automatically scale out horizontally to keep up with the rate that messages are being written to a queue
.
P
Pranshu Maheshwari
•
9/9/24, 9:56 PM
Queues today doesn
't support strict ordering
. But also
, as Leo mentioned
, concurrency doesn
't really work with strict ordering anyway
Similar Threads
Pull consumer queue example
CD
Cloudflare Developers / general-help
14mo ago
Queue consumer from nextjs worker
CD
Cloudflare Developers / workers-and-pages-help
14mo ago
Queue consumer bug with Terraform (CDKTF)
CD
Cloudflare Developers / workers-and-pages-help
3mo ago
connecting external db in queue consumer
CD
Cloudflare Developers / workers-and-pages-help
2y ago