Updated on 2024-10-24 GMT+08:00

Using RDS for MySQL Database Proxies for Read/Write Splitting

You can enable database proxy for your RDS for MySQL instance to automatically forward read and write requests though a proxy address. To offload read pressure from the primary instance, write requests are forwarded to the primary instance and read requests to read replicas based on the routing policy of the database proxy.

This section describes how to use a database proxy to implement read/write splitting. The process is as follows:

Notes

Keep in mind the following notes on database proxies:
  • Before enabling database proxy, ensure that you have purchased an RDS for MySQL instance.
  • Both the primary instance and read replicas must be available.
  • For details about the regions and versions that support database proxies, see Constraints on Database Proxy.

Procedure