All Products
Search
Document Center

:Reconnect mechanism after Redis clients connection timeout

Last Updated:Jan 03, 2018

A connection timeout to ApsaraDB for Redis may result from network problems, or issues with other servers.

If a timeout occurs, you must physically set up the connection again. There is no explicit correspondence between requests and responses in the Redis protocol, which means that if you set a timeout value, you must physically disconnect the connection in the event of a random timeout. Otherwise, protocol errors may occur.

ApsaraDB for Redis is compatible with various clients, however, some ApsaraDB for Redis clients have no automatic reconnection mechanism. In this case, you must reconnect them to ApsaraDB for Redis.