Couchbase woes on Stackoverflow

I spend quite a lot of time on Stackoverflow, possibly the greatest programming site in internet history. Why? Well it’s a great way to learn from some incredibly talented and passionate people, usually documents the obvious pain points of a language/framework and it can be quite a lot of fun! Over the years I’ve used the site many times and in the last year or so I’ve decided to make a concerted effort to give back to the community that has helped me so much. ...

May 13, 2014 · 6 min

4 Ways to make Couchbase do the hard work: Part IV

In part 3 of this series we looked at compound keys in more detail and also into persisting view data. Today we are going to look at what to do when Couchbase’s query model can’t fulfill what you need! (Or you need an excuse to play with more cool tech). ###Enter ElasticSearch! Elasticsearch is a search server based on Lucene, it’s great for real time analytics, flexible queries and features such as full text search, fuzzy matching and geo location queries. ...

April 13, 2014 · 6 min

Build a kick ass Couchbase stack for under $1000

There are many articles with some great information on how to size your Couchbase cluster but rarely do they mention specific server specifications or details/pricing of tech stacks (Check out this great blog post for sizing Couchbase deployments). In this article we are going to look at how you can build an awesome cloud based solution with a lot of headroom and power for Couchbase for under $1000! While AWS and other cloud vendors such as Heroku and Digital Ocean and others provide a great service and a plethora of features we often find they can be pricey when you want power and performance can be erratic (unless you pay more for dedicated instances). We do love the ability to quickly spin up instances and AWS is one of our main resources for quickly testing out features. (note: these services are great and it’s not bashing them, this is just a different approach). ...

March 10, 2014 · 8 min

4 Ways to make Couchbase do the hard work: Part III

In part 2 of this series we looked at using compound keys for more advanced querying, today we are going to modify our data set slightly so we can explore other querying methods. Our new documents are going to look like this: All that has changed is we’ve added in an ‘offers’ field which is an array that contains 0 or more offer codes that have been ‘claimed’ in our fake system. ...

February 23, 2014 · 5 min

4 Ways to make Couchbase do the hard work: Part II

Basic analytics on our data set In part one of the series here we covered setting up our Couchbase node and populating it with a sample of documents. As a quick refresher here is what one of our sample documents looks like. The query we wrote in the last article allowed us to group new users by year,month,day and so on but also allowed us to retreive a count of how many users had joined between specific dates. ...

February 10, 2014 · 4 min

4 Ways to make Couchbase do the hard work: Part I

Let’s see those new users! Views are the Couchbase way of generating indices so that you can query your data on attributes other than the document key. In this article we are going to explore the Map Reduce system of Couchbase to allow you to access your data in a variety of methods. Views are used for 3 main reasons: Additonal indices on which to query your data Calculating and producing statistics and information Fine filtering of larger data sets The following is incredibly important to remember! ...

February 3, 2014 · 5 min

5 Best Blogs To Follow About Couchbase

The community for couchbase is still quite small, but if you know where to look there are some great blogs out there. Here is our rundown of the top 5 best blogs to follow for Couchbase news and articles (in no particular order). Without any further ado here we go! Hardlifeofapo is a blog packed with great articles that are really in depth, recommended read has to be Couchbase querying for sql people. Also contains articles on Elastic search integration and NodeJs amongst others. ...

January 17, 2014 · 2 min

Installing Couchbase on AWS and Ubuntu

Couchbase is a nosql database built upon memcache technology with persistence and flexibility in both scaling up and down. Here is how to install on AWS. (If you are just installing on ubuntu locally or on your own server then just follow from step 5 onwards). Launch AWS instance (64 bit Ubuntu 12.04LTS) (personally I use dedicated hardware for production but a M1 medium box will do for testing) Ensure that for now your aws security group has port 8091 open to your ip In the future when using the couchbase sdk’s ensure that the following ports are open Couchbase Ports Ssh onto the machine using the keyfile you created with ssh -i YOUR-PEM-FILE.pem ubuntu@INSTANCE-PUBLIC-DNS sudo wget http://packages.couchbase.com/releases/2.2.0/couchbase-server-enterprise_2.2.0_x86_64.deb sudo dpkg -i couchbase-server-enterprise_2.2.0_x86_64.deb sudo service couchbase-server status Visit INSTANCE_IP:8091 Start a new cluster Turn replicas off and enable flush Delete default bucket Create new bucket with 1GB of ram

November 10, 2013 · 1 min