This topic describes how to view the endpoints of an ApsaraDB for Redis instance. The virtual IP address (VIP) of an instance may change due to upgrades or maintenance. We recommend that you connect to an instance by using an endpoint to ensure service availability. You can view different types of endpoints in the ApsaraDB for Redis console.

Prerequisites

The IP address of your client is added to a whitelist of the ApsaraDB for Redis instance. For more information, see Configure whitelists.

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 that you want to manage resides. 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 and port numbers
    View endpoints and port numbers
    Note
    Then, you can connect to the ApsaraDB for Redis instance. For more information, see Use redis-cli to connect to an ApsaraDB for Redis instance.

Network types and connection modes

Network:
VPC
A virtual private cloud (VPC) is a private network that is isolated from other 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.

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

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

Proxy nodes are developed in-house by Alibaba Cloud to enable architecture changes, route and forward commands, balance loads, perform failovers, and run Redis commands developed by Alibaba Cloud. The proxy 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 typeArchitectureVPCInternetConnection mode
Cloud diskStandard✔️✔️Direct connection mode
Cluster (direct connection mode)✔️Direct connection mode
Cluster (proxy mode)✔️✔️Proxy mode
Read/write splitting✔️✔️Proxy mode
Local diskStandard✔️✔️Direct connection mode
Cluster✔️✔️Proxy mode

Direct connection mode

Read/write splitting✔️✔️Proxy mode

FAQ

If your client fails to connect to your instance and an error occurs, you can refer to the solutions that are provided in Common Errors and Troubleshooting.