redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.4k stars 1.2k forks source link

Implement avoid iddle connections for Azure Redis #1423

Open ekelvin opened 3 years ago

ekelvin commented 3 years ago

In redis Azure happens that the conneciton goes iddle after 10 minutes of inactivity and takes time to reconnect. the recommendation is to add a ping to keep the connection alive. https://gist.github.com/JonCole/925630df72be1351b21440625ff2671f#file-redis-bestpractices-node-js-md

ToDo: Create an auto ping mechanism to prevent the connection from to be iddle

marcbachmann commented 2 years ago

tcp keepalives could also fix that. But there's currently a bug with that configuration: #1339