DailyJS

riak-js

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

libraries databases

riak-js

Posted by Alex R. Young on .
Featured

libraries databases

riak-js

Posted by Alex R. Young on .

I found riak-js today. It's a JavaScript driver
for connecting to
Riak datastores. I hadn't actually heard of Riak, so I've been reading up on
it:

Riak is heavily influenced by Dr. Eric Brewer's CAP Theorem and Amazon's Dynamo paper. Most of the core team comes from Akamai which also explains their focus on operational ease and fault tolerance.

Riak itself is licensed under Apache License Version 2.0, and it's built
with erlang and C.

The riak-js syntax is pretty clean. This example is from the site:

db.save('airlines', 'KLM', {fleet: 111, alliance: 'SkyTeam'}, { links:
  [{ bucket: 'flights', key: 'KLM-8098', tag: 'cargo' },
   { bucket: 'flights', key: 'KLM-1196', tag: 'passenger' }]
})()

One thing I like about this library is they have versions for both Node
and jQuery, and you can install the Node version with npm!