You can switch the network type of an ApsaraDB for Redis instance from classic network to virtual private cloud (VPC). Then, clients in the same VPC can communicate with the ApsaraDB for Redis instance at higher security levels and lower network latency.
Prerequisites
Note You can view the network type in the Basic information section of the instance.
Impacts
- After you switch the network type of an instance from classic network to VPC, you cannot switch back to classic network.
- The instance may experience a transient connection of a few seconds. We recommend that you perform this operation during off-peak hours and make sure that your applications can automatically reconnect to the instance.
- When you switch the network type, you can specify whether to retain the classic network endpoint of the instance. If you do not retain the classic network endpoint, the endpoint is released after the network type is switched. Then, clients cannot connect to the instance by using the classic network endpoint. In this case, you must change the database endpoint on your client at the earliest opportunity.
Network types of ApsaraDB for Redis instances
Network type | Description |
---|---|
VPC (recommended) | 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. If a client is deployed on an Elastic Compute Service (ECS) instance, you can connect the client to an ApsaraDB for Redis instance over a VPC for higher security and lower network latency. For more information about ECS instances, see What is ECS? |
Classic network | Cloud services on the classic network are not isolated. Unauthorized access can be blocked only by using security groups or whitelists. |
Note If a client is deployed in a VPC and an ApsaraDB for Redis instance is deployed in
the classic network, the client cannot connect to the instance. To connect the client
to the instance, switch the network of the instance to the client VPC.
Procedure
Related API operations
Operation | Description |
---|---|
SwitchNetwork | Switches the network type of an ApsaraDB for Redis instance from classic network to VPC. |