micooz
micooz
CDCloudflare Developers
Created by micooz on 9/8/2024 in #queues-beta
Queue "consumer concurrency" feature
3 replies
CDCloudflare Developers
Created by micooz on 9/8/2024 in #queues-beta
Queue "consumer concurrency" feature
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.
3 replies