Introduction to Database Proxy
Database Proxy is a network proxy service that sits between TaurusDB for PostgreSQL and applications. It is used to handle all requests from the applications to access TaurusDB for PostgreSQL instances.
Read/Write splitting enables read and write requests to be automatically routed through a proxy address. After creating a TaurusDB for PostgreSQL instance, you can create a proxy instance. With the proxy address, write requests are automatically forwarded to the primary node, and read requests are forwarded to each node based on the routing policy of the proxy instance, offloading the read load from the primary node.
Proxy instances are free.
Basic Concepts
How Read/Write Splitting Works
You can create one or more proxy instances for your TaurusDB for PostgreSQL instance to enable read/write splitting.
If your TaurusDB for PostgreSQL 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.

To isolate workloads from one another, you can create up to four proxy instances for a TaurusDB for PostgreSQL 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.
Read/Write Splitting Advantages
- Read/Write splitting enables read and write requests to be automatically routed. You can easily scale out a proxy instance as required at low maintenance costs.
- Read requests are distributed to read replicas to balance database traffic and improve resource utilization.
- A proxy instance routes read requests of an application only to its associated read replicas to isolate workloads.
Request Routing Rules
Precautions
| Category | Precaution |
|---|---|
| Unsupported functions | You cannot control access by editing the database's pg_hba file, and blocking proxy IP addresses there will prevent the proxy instances from connecting to the database. |
| Usage constraints |
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot