graphql-redis-subscriptions
graphql-redis-subscriptions copied to clipboard
Scaling redis pubsub over multiple instance of application.
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.
-
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)
-
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?