Connecting to Memorystore Redis for Message Queue Implementation #2287
-
Hello there, I tried using BullMQ's Latest Version (4.14.0) to implement a Message Queue system for a chat-based application. For the Redis connection, I was trying to pass the connection data of Memorystore for Redis. I get the following error and I am assuming it is because, 'IORedis' is trying to use the 'Client' command, which is blocked by the Memorystore Redis instance.
Is there a way to make this work or do I have to use a separate Redis server for implementing Queues? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You could try to create an instance of IORedis, then monkey patch the "client" method on it to do nothing and then pass that instance as a connection to BullMQ. (getWorkers API will not work after this hack). |
Beta Was this translation helpful? Give feedback.
You could try to create an instance of IORedis, then monkey patch the "client" method on it to do nothing and then pass that instance as a connection to BullMQ. (getWorkers API will not work after this hack).