rosh
rosh

Reputation: 1

How to restart all subscriptions done by Redis after Redis is restarted?

Once the Redis server is restarted, how to start all the processes which were run by Redis instance?

Here in my application, I can see that Redis instance is created, but all the subscriptions which the Redis instance was doing, is not restarted. Hence application is not able to receive new messages from the event bus/ Redis bus.

Upvotes: 0

Views: 262

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 49942

You application needs to capture the disconnect event and, once the database is back online, reconnect to it and resubscribe to the relevant channels.

Upvotes: 2

Related Questions