All Products
Search
Document Center

ApsaraDB RDS:Use a database proxy endpoint to connect to an ApsaraDB RDS for PostgreSQL instance

Last Updated:Jan 10, 2024

In business scenarios such as read/write splitting and processing of highly concurrent read and write operations, we recommend that you use a database proxy endpoint in your application to connect to your ApsaraDB RDS for PostgreSQL instance. This way, the system can allocate requests based on the read/write attribute and read weight that you configured for the database proxy endpoint to reduce the loads on the primary RDS instance. This topic describes how to connect to an RDS instance by using a database proxy endpoint.

Prerequisites

Procedure

View and manage the database proxy endpoint and port

You can view and manage the database proxy endpoint and the port that is associated with the database proxy endpoint for your RDS instance in the ApsaraDB RDS console by using one of the following methods:

Perform operations on the Database Proxy page

  1. Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
  2. In the left-side navigation pane, click Database Proxy.

  3. In the Connection Information section, view the database proxy endpoint and the port that is associated with the endpoint.

    Note

Perform operations on the Database Connection page

  1. Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
  2. In the left-side navigation pane, click Database Connection.

  3. In the Database Proxy Endpoint section, view the database proxy endpoint and the port that is associated with the database proxy endpoint.

    Note

Connect to an RDS instance

After you obtain the database proxy endpoint and the port that is associated with the database proxy endpoint, you can use the endpoint to connect to your RDS instance. For more information, see Connect to an ApsaraDB RDS for PostgreSQL instance.

References

Related operations

API

Description

DescribeDBProxy

Queries the details of a database proxy.

DescribeDBProxyEndpoint

Queries the endpoint of a database proxy.

ModifyDBProxyEndpoint

Modifies the connection settings for a database proxy endpoint.