This topic describes how to view the endpoints of an ApsaraDB for Redis instance in the ApsaraDB for Redis console. The virtual IP address (VIP) of an ApsaraDB for Redis instance may change due to upgrades or maintenance. We recommend that you connect to an ApsaraDB for Redis instance by using an endpoint to ensure service availability. You can view different types of endpoints in the ApsaraDB for Redis console.
- Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click the instance ID.
- In the Connection Information section, view different types of endpoints and port numbers.
Endpoint type Condition Description Private endpoint If your instance is a cluster instance, you can apply for a private endpoint. For an ApsaraDB for Redis instance that uses the cluster architecture, you can apply for a private endpoint. You can use the endpoint to directly access backend data shards. This connection method is similar to the method that is used to connect to a native Redis 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 proxy servers. For more information about how to enable the direct connection mode, see Enable the direct connection mode. VPC endpoint N/A A VPC is a private network dedicated to your Alibaba Cloud account. VPCs are logically isolated from each other at Layer 2 to provide higher security and performance. When redis-cli is deployed on an Elastic Compute Service (ECS) instance, you can connect to an ApsaraDB for Redis instance over a VPC to gain higher security and reduce network latency. For more information, see What is ECS? Classic network endpoint When you create an ApsaraDB for Redis instance, you select the classic network. Cloud services on the classic network are not isolated. Unauthorized access can be blocked only by using security groups or whitelists. We recommend that you use a VPC to improve security. For more information about how to change the network type of an ApsaraDB for Redis instance, see Change the network type from classic network to VPC. Public endpoint You must apply for the endpoint. If you want to connect an on-premises host to an ApsaraDB for Redis instance over the Internet, you must apply for a public endpoint. For more information, see Apply for a public endpoint for an ApsaraDB for Redis instance.Note You are not charged for traffic generated when you connect to the ApsaraDB for Redis instance over the Internet. However, the connection may be exposed to security risks. We recommend that you use a VPC to improve security.