DBSlayer beta-10
Sponsored Links
DBSlayer beta-10 Ranking & Summary
File size:
0.24 MB
Platform:
Any Platform
License:
The Apache License 2.0
Price:
Downloads:
819
Date added:
2007-07-30
Publisher:
Derek Gottfrid
DBSlayer beta-10 description
DBSlayer also know as Släyer (as we like to call it when were 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 its 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 DBs 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.
Main features:
- Simple HTTP interface
- JSON-format messages
- MySQL adapter (others possible in the future)
- Connection pooling
- Multithreaded
- Round-robin distribution of queries to slave instances
- Automatic failover to alternate databases
- Straight-forward configuration
- Simple yet powerful codebase.
Example Usage:
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 c where c.name = United States and c.code = ci.CountryCode order by Population desc limit 10;
http://localhost:9090/db?%7B%22SQL%22:%22select%20ci.*%20from%20City%20ci,%20Country%20c%20where%20c.name%20=%20United%20States%20and%20c.code%20=%20ci.CountryCode%20order%20by%20Population%20desc%20limit%2010;%22%7D
HTTP/1.0 200 OK
Date: Wed, 27 Jun 2007 20:55:59 GMT
Server: dbslayer/server beta-9
Connection: Close
Content-type: text/plain; charset=utf-8
Content-Length: 746
{"RESULT" : {"TYPES" : ["MYSQL_TYPE_LONG" , "MYSQL_TYPE_STRING" , "MYSQL_TYPE_STRING" , "MYSQL_TYPE_STRING" , "MYSQL_TYPE_LONG"] ,
"HEADER" : ["ID" , "Name" , "CountryCode" , "District" , "Population"] ,
"ROWS" : [[3793 , "New York" , "USA" , "New York" , 8008278] ,
[3794 , "Los Angeles" , "USA" , "California" , 3694820] ,
[3795 , "Chicago" , "USA" , "Illinois" , 2896016] ,
[3796 , "Houston" , "USA" , "Texas" , 1953631] ,
[3797 , "Philadelphia" , "USA" , "Pennsylvania" , 1517550] ,
[3798 , "Phoenix" , "USA" , "Arizona" , 1321045] ,
[3799 , "San Diego" , "USA" , "California" , 1223400] ,
[3800 , "Dallas" , "USA" , "Texas" , 1188580] ,
[3801 , "San Antonio" , "USA" , "Texas" , 1144646] ,
[3802 , "Detroit" , "USA" , "Michigan" , 951270]]}}
As long as your programming language has HTTP request and JSON parsing libraries, calling the DBSlayer should be rather straightforward. Note: the DBSlayer currently only supports GET requests, although other HTTP verbs will be supported in future releases. See the section Coding Against the DBSlayer below for more practical details.
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 DBs 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.
Main features:
- Simple HTTP interface
- JSON-format messages
- MySQL adapter (others possible in the future)
- Connection pooling
- Multithreaded
- Round-robin distribution of queries to slave instances
- Automatic failover to alternate databases
- Straight-forward configuration
- Simple yet powerful codebase.
Example Usage:
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 c where c.name = United States and c.code = ci.CountryCode order by Population desc limit 10;
http://localhost:9090/db?%7B%22SQL%22:%22select%20ci.*%20from%20City%20ci,%20Country%20c%20where%20c.name%20=%20United%20States%20and%20c.code%20=%20ci.CountryCode%20order%20by%20Population%20desc%20limit%2010;%22%7D
HTTP/1.0 200 OK
Date: Wed, 27 Jun 2007 20:55:59 GMT
Server: dbslayer/server beta-9
Connection: Close
Content-type: text/plain; charset=utf-8
Content-Length: 746
{"RESULT" : {"TYPES" : ["MYSQL_TYPE_LONG" , "MYSQL_TYPE_STRING" , "MYSQL_TYPE_STRING" , "MYSQL_TYPE_STRING" , "MYSQL_TYPE_LONG"] ,
"HEADER" : ["ID" , "Name" , "CountryCode" , "District" , "Population"] ,
"ROWS" : [[3793 , "New York" , "USA" , "New York" , 8008278] ,
[3794 , "Los Angeles" , "USA" , "California" , 3694820] ,
[3795 , "Chicago" , "USA" , "Illinois" , 2896016] ,
[3796 , "Houston" , "USA" , "Texas" , 1953631] ,
[3797 , "Philadelphia" , "USA" , "Pennsylvania" , 1517550] ,
[3798 , "Phoenix" , "USA" , "Arizona" , 1321045] ,
[3799 , "San Diego" , "USA" , "California" , 1223400] ,
[3800 , "Dallas" , "USA" , "Texas" , 1188580] ,
[3801 , "San Antonio" , "USA" , "Texas" , 1144646] ,
[3802 , "Detroit" , "USA" , "Michigan" , 951270]]}}
As long as your programming language has HTTP request and JSON parsing libraries, calling the DBSlayer should be rather straightforward. Note: the DBSlayer currently only supports GET requests, although other HTTP verbs will be supported in future releases. See the section Coding Against the DBSlayer below for more practical details.
DBSlayer beta-10 Screenshot
DBSlayer beta-10 Keywords
DBSlayer
MYSQL
TYPE
HTTP
JSON
STRING
Database Abstraction Layer
database abstraction
Abstraction layer
usa
layer
database
websites
suitable
lightweight
DBSlayer beta-10
Bookmark DBSlayer beta-10
DBSlayer beta-10 Copyright
WareSeeker periodically updates pricing and software information of DBSlayer beta-10 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DBSlayer beta-10 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
database abstraction layers
php database abstraction layer
java database abstraction layer
dbslayer ruby
mysql database abstraction layer
hardware abstraction layer
tutorial database abstraction layer
abstraction layers
database abstraction layer php
what is database abstraction layer
software abstraction layer
abbreviation
php database abstraction
database abstraction layer c#
abstraction layer definition
database abstraction layer rdbms independent
database abstraction library
mysqli database abstraction layer
Related Software
DBIx::SQL::Abstract is a Perl module that provides a convenient abstraction layer to a database. Free Download
The CAN Abstraction Layer (CANAL) provides a single interface for programs to use different CAN drivers. Free Download
dbscript is an open source web development framework. Free Download
phpBugTracker is a bug tracker written in PHP. Free Download
snarf provides a command-line URL retrieval tool with some unique features. Free Download
PHP MySQL Database Layer Class is a php class providing some very useful methods to work with a mySQL database. Free Download
Datamixer generates mock data, mixes it with data from other sources such as files, and can write the results back to files or t Free Download
php4dbi is a database abstraction layer for PHP. Free Download
Latest Software
Popular Software
Favourite Software