[New features/New specifications] ApsaraDB RDS for PostgreSQL provides general-purpose database proxies free of charge
Starting December 22, 2023, ApsaraDB RDS for PostgreSQL provides general-purpose database proxies free of charge.
Effective date
December 22, 2023
What is a database proxy
A database proxy sits between your application and your RDS instance, intercepting all incoming requests. It supports read/write splitting and transaction splitting to offload traffic from the primary instance, and provides high availability, high performance, easy O&M, and ease of use.
ApsaraDB RDS for PostgreSQL offers two proxy types:
| Proxy type | Billing |
|---|---|
| General-purpose database proxy | Free of charge |
| Dedicated proxy | Pay-as-you-go |
For a full comparison of features and behaviors, see What are database proxies?
When to use a database proxy
Enable a database proxy when your RDS instance shows any of the following conditions:
High connection count: The primary instance is exhausting available connections due to excessive concurrent clients.
Transaction-heavy load: A large volume of short transactions is overloading the primary instance.
Read/write splitting required: Read-heavy workloads need to be distributed between the primary instance and read-only instances.
Workload isolation: Read-only workloads need to run without affecting write performance on the primary instance.
Prerequisites
Before you enable the database proxy, verify that your RDS instance meets all of the following requirements:
Runs PostgreSQL 10 or later
Uses cloud disks
Runs RDS High-availability Edition
Is a primary RDS instance
If your instance resides in Hangzhou Zone C or Hangzhou Zone D, database proxies are not supported. Migrate the instance to another zone first. For details, see Migrate an ApsaraDB RDS for PostgreSQL instance across zones in the same region.
Billing
| Proxy type | Billing method |
|---|---|
| General-purpose database proxy | Free of charge |
| Dedicated database proxy | Pay-as-you-go. For details, see Billing rules for database proxies. |
Enable the database proxy
For step-by-step instructions, see Enable the dedicated proxy feature.