Project Voldemort Key/value store Automatic replication/partitioning 75 Github forks “It is basically a just a big, distributed, persistent, fault-tolerant hash table.”
Tokyo Cabinet Another key/value store Blazing fast… theoretically Lua for server-side scripting
Tokyo Cabinet Key/value pairs Array store Index-able Hash { name : “Chris” age : 27, DOB : “January 1” }
CouchDB Master-Master Replication Map/Reduce REST API
CouchDB Futon
MongoDB
MongoDB Ease of use Scalable Dynamic queries - similar “feel” to SQL Speed of key/value stores (almost) Power of RDBMSs (almost)
The Perl Driver Available at Github: www.github.com/mongodb/mongo-perl-driver/ Install the Perl driver $ perl Makefile.PL && sudo make install Available on CPAN (but old): http://search.cpan.org/~flora/MongoDB-0.01/
Downloading MongoDB www.mongodb.org Binaries available for Linux, Mac, Windows, Solaris
Start the DB Server $ mkdir ~/db $ $ tar zxvfmongodb-<OS>-1.0.0.tgz $ cdmongodb-<OS>-1.0.0 $ bin/mongod --dbpath ~/db
Connecting to the Database use MongoDB; my $connection = MongoDB::Connection->new; my $db = $connection->get_database(‘test’); my $collection = $db->get_collection(‘foo’);
Inserting my $id = $collection->insert( { title => ‘My first blog post’, author => ‘Joe’, content => ‘Hello, world!’ comments => [] } );
0 comments
Post a comment