Brett Lawson's blog

January 28, 2014

Node.js ODM for Couchbase (Ottoman)

A few months back, I was talking with some of the users of our Node.js client and heard a fairly standard opinion that people were looking for some method to simplify their life further when using Couchbase from Node.js.  One particular things that I heard a lot about was they were looking for some way to have automatically generated models to avoid needing to manually build up all the boilerplate themselves.

Read more »

January 15, 2014

Node.js and N1QL

So, recently I added support to our Node.js client for executing N1QL queries against your cluster, providing you are running an instance of the N1QL engine (to get a hold of the updated version of the Node.js client with this support, point npm to our github master branch at https://github.com/couchbase/couchnode).  When I implemented it, I didn’t have very much to test against at the time, so I figured it would be a interesting endeavorer to see how nice the Node.js’s beer-sample example would look if we used entirely N1QL queries rather than using any views.

Read more »

November 26, 2013

`startkey_docid` Behaviour

Today we had an interesting question pop up on Stack Overflow (http://stackoverflow.com/q/20083932/98509) in relation to the correct usage of `startkey_docid`

Read more »

October 13, 2013

Game Servers and Couchbase with Node.js - Part 3

In this part of the series, we will be setting up a game data storage system to allow you to store player game state over the course of their enjoyment of your game. To do this, we are going to create some /state and /states endpoints which will represent individual blocks of state data. We will allow multiple named state blocks to allow the game to divide the state data into separately updatable blocks to avoid needing to write many state blocks when only one part has changed.

Read more »

October 6, 2013

Game Servers and Couchbase with Node.js - Part 2

In this part of the series, we will be implementing session management and authenticated endpoints (endpoints that require you to be logged in). Lets get started!

Read more »

October 2, 2013

Game Servers and Couchbase with Node.js - Part 1

It seems these days that almost every game studio has been working on networked games where players can interact and co-operate with their friends and other players around the world. Considering my previous experience building such servers and that Couchbase fits the bill as a backing store for a system like this, I thought perhaps this may be an excellent topic to write about! I will be writing this in multiple parts with each part implementing one specific aspect of the game server, additionally, I will be doing the same tutorial using our PHP client library to show that off as well.

Read more »

September 13, 2013

Intro and Couchnode 1.0.0

Hey Everyone!
 
My name is Brett Lawson and I am the new Couchbase Node.js SDK developer.  I have worked for Couchbase for about 3 weeks now, but I haven’t had a chance to get a blog out until now.  I have been a regular contributor to the Node.js SDK for over 10 months now.
 
I bring experience with me from the social games industry, wher

Read more »