๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Databases Advanced

What is Database Proxy?

A middleware server that sits between applications and databases, providing connection pooling, load balancing, and query routing.

Database proxies intercept database connections and provide transparent features. PgBouncer (PostgreSQL) pools connections, dramatically reducing server overhead. ProxySQL (MySQL) adds query routing, caching, and read/write splitting.

Benefits include connection multiplexing (many app connections โ†’ few DB connections), transparent failover, query caching, read/write splitting (route reads to replicas), and traffic shaping. Proxies are essential for scaling database connections in microservices architectures.

Related Terms

MVCC (Multi-Version Concurrency Control)
A technique where the database maintains multiple versions of data to allow concurrent reads and writes without locking.
Database Sharding
A horizontal scaling strategy that distributes data across multiple database servers based on a partition key.
Row-Level Security (RLS)
A database feature that restricts which rows a user can access in a table based on security policies.
Database Backup
The process of creating copies of database data to protect against data loss from failures, corruption, or human error.
JOIN
An SQL operation that combines rows from two or more tables based on a related column between them.
ACID
A set of four properties (Atomicity, Consistency, Isolation, Durability) that guarantee reliable database transactions.
View All Databases Terms โ†’