DBSlayer Publisher's description
from Derek Gottfrid
DBSlayer is a lightweight database abstraction layer suitable for high-load websites.
DBSlayer also know as Slï¿½yer (as we like to call it when we're feeling ironically heavy metal) is a lightweight database abstraction layer suitable for high-load websites where you need the scalable advantages of connection pooling. Written in C for speed, DBSlayer talks to clients via JSON over HTTP, meaning it's simple to monitor and can swiftly interoperate with any web framework you choose.
The DBSlayer originated as an internal tool at the New York Times. The typical LAMP strategy for scaling up data-driven applications is to replicate slave databases to every web server, but this approach can hit scaling limitations for high-volume websites, where processes can overwhelm their given backend DB's connection limits. Quite frankly, we wanted to scale the front-end webservers and backend database servers separately without having to coordinate them. We also needed a way to flexibly reconfigure where our backend databases were located and which applications used them without resorting to tricks of DNS or other such "load-balancing" hacks. Plus, it just seemed really cool to have a JSON-speaking DB layer that all our scriptable content could talk to. Thus, the DBSlayer was born.
Here are some key features of "DBSlayer":
Â· Simple HTTP interface
Â· JSON-format messages
Â· MySQL adapter (others possible in the future)
Â· Connection pooling
Â· Round-robin distribution of queries to slave instances
Â· Automatic failover to alternate databases
Â· Straight-forward configuration
Â· Simple yet powerful codebase.
Starting the DBSlayer is as simple as pointing the DBSlayer at your mysql.cnf file with a few command-line options:
dbslayer -c /path/to/mysql.cnf -s servername
This starts up a DBSlayer daemon on 9090 (this default port can be changed) which acts as a proxy for the backend MySQL server. This proxy can then be queried via JSON over HTTP. Here is a query against one of the standard MySQL test databases:
select ci.* from City ci, Country
System Requirements:Â· the Apache Portable Runtime (APR) library (1.0 or above)
Â· the Apache Portable Runtime Utility (APU) library (1.0 or above)
Â· the MySQL 5 client libraries (5.0 or above)
You can build and install the DBSlayer using the standard GNU autoconf process:
Unpack the DBSlayer archive
sudo make install
If the APR, APU, and MySQL libraries are installed in default locations, the configure script will find them. Otherwise, it may be necessary to specify the locations of apr-1-config, apu-1-config, and mysql-config with the --with-apr-1-config, --with-apu-1-config, and --with-mysql-config parameters to configure.
Program Release Status:
Program Install Support: Install and Uninstall and Repair