Updated on 2026-09-16 GMT+08:00

What Is Database Proxy?

Database Proxy is a network layer service that sits between TaurusDB and applications. It is used to forward all requests from applications to access TaurusDB instances.

You can enable database proxy for your TaurusDB instance to automatically forward read and write requests through a proxy address. The proxy instance forwards write requests to the primary node and read requests to read replicas based on your specified routing policy. This eases the load on the primary node.

Proxy instances are currently free of charge.

Introduction Video

Basic Concepts

How Read/Write Splitting Works

You can create one or more proxy instances for your TaurusDB instance to enable read/write splitting.

If your TaurusDB instance has only one proxy instance, applications connect to the proxy instance through the proxy address. Write requests are forwarded to the primary node and read requests to the primary node or read replicas based on the routing policy you specify.

Figure 1 Read/write splitting with only one proxy instance

To isolate workloads from one another, you can create up to four proxy instances for a TaurusDB instance. Different applications can connect to different proxy instances as required. The associated read replicas of the proxy instances process read requests from different applications for workload isolation.

Figure 2 Read/write splitting with multiple proxy instances

Read/Write Splitting Advantages

  • Compared with manual read/write splitting in applications, the read/write splitting using proxy addresses features flexible scale-out and low maintenance costs.
  • Read requests are distributed to your read replicas based on weights to balance your database traffic and improve resource utilization.
  • A proxy instance routes read requests of an application only to its associated read replicas to isolate workloads.
  • By default, proxy instances provide overload protection to prevent operations with large result sets from causing out of memory (OOM) exceptions on the server. To manage performance degradation caused by slow database engine execution, the system relies on database concurrency throttling.

Request Routing Rules