doc-exports/docs/rds/umn/rds_03_0060.html
Wang , Deng Ke 79b1bc1455 RDS UMN 20221101 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2023-01-09 10:26:58 +00:00

5.6 KiB

Connecting to a DB Instance

An RDS DB instance can be connected through a private network or a public network.

Table 1 RDS connection methods

Connect Through

IP Address

Scenarios

Description

Private network

Floating IP

RDS provides a floating IP address by default.

When your applications are deployed on an ECS that is in the same region and VPC as RDS, you are advised to use a floating IP address to connect to the RDS DB instance through the ECS.

  • Secure and excellent performance
  • Recommended

Public network

EIP

If you cannot access an RDS DB instance through a floating IP address, bind an EIP to the DB instance and connect the DB instance to the ECS through the EIP.

  • A relatively lower level of security compared to other connection methods
  • To achieve a higher transmission rate and security level, you are advised to migrate your applications to an ECS that is in the same VPC as your RDS DB instance and use a floating IP address to access the DB instance.
  • VPC: indicates the Virtual Private Cloud.
  • ECS: indicates the Elastic Cloud Server.
  • If the ECS is in the same VPC as your RDS DB instance, you do not need to apply for an EIP.

Figure 1 illustrates the connection over a private network or a public network.

Figure 1 DB instance connection