This topic describes how to view endpoints of an ApsaraDB for Redis instance in the console. The virtual IP address of an ApsaraDB for Redis instance may change during service changes 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 endpoints in the ApsaraDB for Redis console.

Procedure

  1. Log on to the ApsaraDB for Redis console.
  2. In the top navigation bar of the page, select the region where the instance is deployed.
  3. On the Instances page, click the ID of the instance.
  4. In the Connection Information section, view different types of endpoints and corresponding port numbers.
    Figure 1. View endpoints
    View endpoints
    Note Persistent memory-optimized instances of the cluster architecture support only the direct connection mode.
    Endpoint type Condition for having this type of endpoint Description
    Direct connection endpoint The instance is a cluster instance. You can apply for a direct connection endpoint as required. The network type of a direct connection endpoint is Virtual Private Cloud (VPC). For an ApsaraDB for Redis instance that uses the cluster architecture, you can apply for a direct connection endpoint. You can use the endpoint to directly access backend data shards. This connection method is similar to the method 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 a proxy server. For more information about how to enable the direct connection mode, see Enable the direct connection mode.
    Note The VPC endpoints provided by cluster instances and read/write splitting instances are used for the proxy mode.
    VPC endpoint None. A VPC is a private network dedicated to your Alibaba Cloud account. VPCs are logically isolated from each other at Layer 2 and provide higher security and performance. If 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 better security performance and reduce network latency.
    Classic network endpoint The network type of the instance is set to Classic Network when you create the instance. Cloud services in a classic network are not isolated. Unauthorized access to cloud services is blocked only by 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 instance, see Change the network type from classic network to VPC.
    Public endpoint None. You can apply for a public endpoint as required. If you want to connect to an ApsaraDB for Redis instance from an on-premises machine over the Internet, you must apply for a public endpoint. For more information, see Apply for a public endpoint.
    Note You are not charged for data transfer fees if you connect to an 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.