SOHU-DBProxy is a data middle-tier project based on the MySQL protocol developed and maintained by the Sohu database team. Based on the MySQL-Proxy 0.8.3 version officially launched by MySQL, it has modified a lot of bugs and added many features. Now it has been used in multiple business lines of sohu
DBProxy is compatible with MySQL protocol, can connect with any 5.1/5.5 client, supports JDBC, PHP, ODBC, C
Driver, c3p0, DBCP connection pool. JDBC, PHP, C drivers have been tested. Support dynamic expansion, automatic realization of reading
Write separation.
DBProxy is a product developed by the SOHU DBA team, referring to the open source products MySQL Proxy 0.8.3, Spock Proxy
, a database middleware product developed using standard C.
DBProxy sits between the application and the database and can monitor/control/forward client requests and server responses.
The results are returned, and the functions of connection multiplexing, load balancing, failover, and read-write separation are realized.
SOHU-DBProxy main functions:
1 Connection multiplexing is possible even in the same connection (as long as it is not in the same transaction)
2 Load balancing improves read performance and supports dynamic expansion
3 Dynamically added SQL auditing and filtering. Statistically long-running SQL affects performance and prevents it from running
4 User Connection Limits
5 Automatically remove the downtime DB
6 Read-write separation (no current version, code and testing have been completed, not merged into the current version)