Open shuat opened 4 years ago
What could be causing the redis connection to be dropped? Is your redis instance on a different server? Is your redis instance overloaded?
Kutt depends on having a constant live connection to Redis, since it needs to query the cache FAST in large deployments. If the connection was allowed to be dropped and reconnect again that could create a significant slowdown for users during that time.
Connection drops should not crash the app.
If a constant connection needs to be maintained, consider using a connection pool, where if any drop there are others still available for queries and new connections will be established to maintain a certain number in the pool.
consider using a connection pool
That wouldn't work if the Redis connection is dropped due to network reasons or the Redis server itself is going down for some reason. All connections in the pool would disconnect.
My application keeps crashing with the following message. Why should a connection reset cause the application to crash? I have other applications using that redis and they are doing fine.