ApsaraDB for Redis supports different types of endpoints. You can connect to an ApsaraDB for Redis instance by using clients, Data Management (DMS), or redis-cli.
After you create an instance, you can view information about endpoints on the Instance Information page. A default endpoint is provided based on the network type that you select when you create an instance. You can use the endpoint to connect to the instance over a virtual private cloud (VPC) or classic network. If you want to connect to the instance by using a direct connection endpoint or a public endpoint, you must apply for corresponding endpoints. For more information about endpoints and how to view endpoints, see View endpoints.
Common connection methods
|Use DMS||You can use Data Management (DMS) to log on to ApsaraDB for Redis instances without installing a client. DMS helps you manage ApsaraDB for Redis instances on a visual interface.|
|Use a Redis client||ApsaraDB for Redis is compatible with open source Redis. You can connect to ApsaraDB for Redis and open source Redis in similar ways. Therefore, you can use a client that is compatible with the Redis protocols to connect to ApsaraDB for Redis.|
|Use redis-cli||redis-cli is a Redis-native CLI. You can use redis-cli to connect to an ApsaraDB for Redis instance from an ECS instance or an on-premises host and manage data.|
Other connection methods
|Use a public endpoint to connect to an ApsaraDB for Redis instance||If you want to test or manage an ApsaraDB for Redis instance on an on-premises host, you can apply for a public endpoint for the instance and connect to the instance over the Internet.|
|Use a private endpoint to connect to an ApsaraDB for Redis instance||You can apply for a direct connection endpoint for a cluster instance and use the endpoint to directly access backend data shards. This connection method is similar to the method used to connect to a Redis-native cluster. Compared with the proxy mode, the direct connection mode reduces the response time of ApsaraDB for Redis because requests do not need to pass through a proxy server. For more information about how to enable the direct connection mode, see Enable the direct connection mode.|
|Use the Sentinel-compatible mode to connect to ApsaraDB for Redis||ApsaraDB for Redis provides the Sentinel-compatible mode. After you enable this mode, clients can connect to ApsaraDB for Redis instances in the same way as they connect to Redis Sentinel.|