OptimalBits / bull

Premium Queue package for handling distributed jobs and messages in NodeJS.
Other
15.52k stars 1.43k forks source link

blpop on read replica #1821

Closed chaffeqa closed 4 years ago

chaffeqa commented 4 years ago

Description

Curious if you know if we can point the blclient redis connection to a read only redis instance.

Specifically, we use Elasticache with read/write replica (non cluster mode), amazon says that supports pubsub onto the reader, but curious about blpop since its not tech a read

manast commented 4 years ago

we use https://redis.io/commands/brpoplpush, which requires write, so it will not work.

chaffeqa commented 4 years ago

yep read that, sry meant ot update this, thx for the quick response!

FYI to those who may stumble on this, we are using the reader for the subscription client.

in looking into that implementation it looks safe since it only subscribes to pubsub, which IS supported on reader EC