graphql-redis-subscriptions icon indicating copy to clipboard operation
graphql-redis-subscriptions copied to clipboard

Scaling redis pubsub over multiple instance of application.

Open saurav-bhagat opened this issue 3 years ago • 0 comments

Hi, I have a situation in which there will be multiple instances of my graphql subscription server running. Data is coming over from a different data source let's say, Kafka. As soon as data reaches my server, I'll publish it to Redis pubsub.

  1. So, if there are multiple clients connecting to different pods/instances of my server application. Will this ensures that all the instances will get the same data as soon as we publish something to Redis over the same topic? (I'm in doubt here because there'll be new instance of RedisPubSub in each of the pod)

  2. Also, if suppose one of the pod goes down and the client reconnects, by that time client might loose some data, how can I prevent this data loss in this case?

saurav-bhagat avatar May 21 '21 11:05 saurav-bhagat