Use multiples prefixes within same Queue in Redis Cluster Mode #3299
Unanswered
Steffen911
asked this question in
Q&A
Replies: 1 comment 1 reply
-
When using cluster you must either prefix the queues with some word surrounded by braces, or surround the queue name with braces. This is the same technique required by Dragonfly for instance: https://www.dragonflydb.io/docs/integrations/bullmq |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Description
We're having a single queue that receives approximately 4000 events per second and we anticipate this number to increase. We observe that at this scale the Redis Engine CPU utilization reaches 100% and vertical scaling does not mitigate it due to the single-threadedness of Redis.
Question
We want to use bullmq with the Redis Cluster mode to separate the processing across multiple instances. For this purpose our idea is to set different prefixes based on some identifier-hash from the event. E.g. we'd have prefix
queue-name-1
toqueue-name-8
and based on the tenantId we hash the prefix to either of them while keeping the queue name the same.Is this a supported setup? What would be the expected behaviour from the bullmq side if the same QueueName is being used with different prefixes?
Beta Was this translation helpful? Give feedback.
All reactions