Introducing Read/Write Splitting

Read/write splitting enables read and write requests to be automatically routed through a read/write splitting address. You can enable read/write splitting after read replicas are created. Write requests are automatically routed to the primary DB instance and read requests are routed to read replicas by user-defined weights.

Billing

The database proxy has been put into commercial use. You will be billed on an hourly basis based on the number of proxy nodes used. Pricing details are as follows.

Table 1 Pricing details of read/write splitting

CPU Type

Instance Class

Price (¥/hour)

x86

4 vCPUs | 8 GB

2.3

Currently, only the x86 architecture with 4 vCPUs and 8 GB of memory supports read/write splitting. For details, see the official announcement or email notification.

Table 2 Pricing details of read/write splitting for DB instances in a DeC

CPU Type

Instance Class

Price (¥/hour)

x86/Arm

2 vCPUs | 4 GB

1.2

4 vCPUs | 8 GB

2.4

8 vCPUs | 16 GB

4.8

Constraints

When read/write splitting is enabled, the system automatically deletes the existing account rdsProxy and creates a new rdsProxy account. When read/write splitting is disabled, the system automatically deletes the existing account rdsProxy. To prevent the system from deleting your created rdsProxy account, you are advised not to create it.

  • Only RDS for PostgreSQL 11 and 12 support read/write splitting.
  • At least one read replica is required for enabling read/write splitting.
  • If you delete a primary DB instance after read/write splitting is enabled, the read replicas are also deleted and read/write splitting is disabled.
  • After read/write splitting is enabled, the database port, security group, and floating IP address of the primary DB instance and read replica cannot be changed.
  • Read/write splitting does not support SSL encryption.
  • Read/write splitting does not support the compression protocol.
  • Read/write splitting does not support the pg_terminate_backend() function.
  • Read/write splitting does not support the READ UNCOMMITTED transaction isolation level.
  • Multi-statement queries are not supported. However, when pgproxy is connected through psql, multi-statement queries can be executed in psql.
  • When read and write requests are split through the read/write splitting address, all transaction requests are routed to the primary DB instance while the non-transaction read consistency is not ensured. To ensure read consistency, encapsulate requests into transactions.