Connection Methods

You can access DDS over private or public networks.

Table 1 Connection methods

Method

IP Address

Scenario

Description

Private network

Private IP address

DDS provides a private IP address by default.

  • You are advised to use private IP address in following scenarios:

    • Your ECS instance is in the same VPC subnet as the DDS DB instance

    • ECS subnet and DDS subnet are connected to each other by VPC peering.

  • By default, DDS is not accessible from ECSs that are not in the same security group. If the ECS is not in the same group, you need to add an inbound rule to enable access.

  • The default DDS port is 8635, but this port can be modified if necessary.

Secure and excellent performance

Public network

EIP

  • If your applications are running on an ECS that is in a different region from the one where the DB instance is located, you are advised to use an EIP to connect the ECS to your DDS DB instances.

  • If your applications are deployed on another cloud platform, EIP is recommended.

  • Low security

  • For faster transmission and improved security, you are advised to migrate your applications to an ECS that is in the same subnet as your DDS instance and use a private IP address to access the instance.