This topic describes how to view the endpoints of an ApsaraDB for Redis instance. 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.

Procedure

  1. 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 its ID.
  2. In the Connection Information section, view different types of endpoints and port numbers.
    Figure 1. View endpoints
    View endpoints
    Note For more information about Network and Connection Type, see Network types and connection modes.

Network types and connection modes

Network supported by ApsaraDB for Redis:
Virtual Private Cloud (VPC)
A VPC is a private network that is isolated from other private networks at the network layer on top of physical-layer protocols. VPC provides high security, reliability, flexibility, scalability, and ease of use. For more information, see What is a VPC?.

Scenarios: Higher security and lower network latency can be achieved if you deploy an Elastic Compute Service (ECS) instance in the same VPC as your ApsaraDB for Redis instance and connect the ECS instance to your ApsaraDB for Redis instance over the VPC.

Internet
For more information, see Apply for a public endpoint for an ApsaraDB for Redis instance.

Although you are not charged for the traffic to connect to an ApsaraDB for Redis instance over the Internet, the connection may incur risks. We recommend that you use a VPC to ensure better security.

Scenario: Your ApsaraDB for Redis instance can be connected by using your computer, an ECS instance deployed in a different VPC, or a device within a third-party cloud service.

Connection Type supported by ApsaraDB for Redis:
Proxy mode
In proxy mode, you can connect to an ApsaraDB for Redis instance by using proxy nodes.

Proxy nodes are developed by Alibaba Cloud to enable architecture changes, route and forward commands, balance loads, perform failovers, and run Redis commands developed by Alibaba Cloud. The connection mode can aggregate connections and enhance read performance. In addition, this mode is easy to use and simplifies your business system. For more information, see Features of proxy nodes

Direct connection mode
In direct connection mode, you can connect to an ApsaraDB for Redis instance in the same way as you connect to an open source Redis database.

Supported network types and connection modes for instances of different architectures

In the following table, ✔️ indicates that the item is supported and ❌ indicates that the item is not supported.

Disk type Architecture VPC Internet Connection mode
Cloud disk Standard ✔️ ✔️ Direct connection mode
Cluster (direct connection mode) ✔️ Direct connection mode
Cluster (proxy mode) ✔️ ✔️ Proxy mode
Local disk Standard ✔️ ✔️ Direct connection mode
Cluster ✔️ ✔️ Proxy mode

Direct connection mode

Read/write splitting ✔️ ✔️ Proxy mode