Ruby SDK

August 7, 2013

Multiple Bucket Connections in Couchbase and Ruby

c = Couchbase.new("http://localhost:8091/pools/default/buckets/my-bucket")

I believe it’s safe to say we are mostly all familiar with the above Ruby code.  It establishes a connection from the Ruby SDK to a bucket of our choosing inside our Couchbase cluster.  There are, of course, multiple ways of writing this line, such as specifying the URI and Port as Ruby Symbols (:pool => "default", :bucket => "my-bucket")etc.  The point I am making here is that we write these simple one line commands, and get 1 simple connection to our chosen bucket.  But what if our application uses multiple buckets? In this article, I’m going to back to basics, and take you through setting up, and connecting to Multiple Buckets.

Read more »

April 19, 2013

10 Things Developers Should Know about Couchbase

As a developer, I’ve been using Couchbase Server for couple of months now and I love it. Having written several apps myself, I’ve come to learn many (but not all) of the ins-and-outs of Couchbase. To be a good Couchbase developer, it’s not just enough to know how to use the API’s - it takes a little bit more.

Read more »

March 4, 2013

The Essential Couchbase APIs Cheat Sheet

As a developer, you might want to quickly check out the programming API’s in your favorite language and build your app.  While there is nothing that can replace reading all the API details in the Couchbase Server documentation, a refcard for the most commonly used programming languages can make your life a lot easier providing you with a quick list of the API’s when you need it.

Read more »

January 18, 2013

Understanding Letter Ordering in View Queries

Map/Reduce Views are an important part of Couchbase 2.0 and understanding how to query them is also important. Our documentation is great and can be found here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views.html

Read more »

November 15, 2012

Fun with Couchbase and Markov Chains

I’ve been hearing about Markov chains for long enough – it was time that I learned more about them and develop a simple fun markov chain application. I’m sure that you don’t want to get bogged down by the mathematical details of Markov Chains - learning by building an application is where all the fun is!

Read more »