For this implementation, I use the official redis npm package (formerly node-redis). For other library like ioredis you might run into different problems. Quick fix on unstable connection — Easy part Adding the simple config in the Node.js redis package to make it PING. ...
disableOfflineQueue: true,
pingInterval: 1000, The PING will keep the heartbeat and the connection…