Category: Application Design

Database Pagination: Using OFFSET and Keyset in N1QL.

Read the pagination background in my previous article: https://blog.couchbase.com/optimizing-database-pagination-using-couchbase-n1ql/ Pagination is the task of dividing the potential result into pages and retrieving the required pages, one by one on demand.  Using OFFSET and LIMIT is the easy way to write...

/ January 11, 2018

Saga Pattern | How to implement business transactions using Microservices – Part I

  Transactions are an essential part of applications. Without them, it would be impossible to maintain data consistency. One of the most powerful types of transactions is called a Two-Phase Commit, which is in summary when the commit of a...

Use AWS Lambda and API Gateway with Node.js and Couchbase NoSQL

There has been a lot of buzz around functions as a service (FaaS), commonly referred to as serverless. A popular provider for these functions is Amazon with its AWS Lambda service. One could create a function in any of the...

Going Full Stack with Node.js, Vue.js, and Couchbase NoSQL

If you’ve been keeping up, I’m a huge advocate for Node.js development and the JavaScript development stack. Previously I had written about the Couchbase, Express, AngularJS, and Node.js (CEAN) stack and modernized the backend API with Hapi.js, a popular alternative...

Azure Cloud

Serverless Architecture with Cloud Computing

Serverless is one of the new buzz words that you’ve probably heard. It refers to a type of deployment where the server is abstracted away. It doesn’t mean there aren’t servers, just that you don’t have to provision the servers...

Couchbase Analytics Developer Preview 4 – Bringing NoETL to NoSQL

I am very excited to announce the release of Couchbase Analytics Developer Preview 4 (DP4). The focus of the previous release was unified administration, and we have continued to build on that theme in the latest release. DP4 offers new...

Comparing Couchbase Views with Couchbase N1QL & Indexing.

As Couchbase data platform evolved, services like N1QL and GSI Indexing handled the use cases Couchbase VIEWS used to handle and much more.  It’s logical to ask the comparative question between them.  Here is a table comparing both.  This is...

/ December 4, 2017

Create the Right Index, Get the Right Performance.

Introduction There are three things important in database systems: performance, performance, performance.  For NoSQL database systems, there are three important things: performance at scale, performance at scale, performance at scale. Understanding the index options, creating the right index, with the...

/ November 12, 2017

Optimizing Database Pagination using Couchbase N1QL.

Background: How does Google do it? When you google something or anything, it gives you back top relevant results, tells you an approximate number of documents for your topic — all under a second.   Here are some high-level pointers: https://www.google.com/search/howsearchworks/algorithms/...

/ November 2, 2017

Create a RESTful API with Node.js, Hapi, and Couchbase NoSQL

Developing Node.js applications with Express is no doubt a very popular option, however it isn’t the only option and it may not even be the best option. I recently started looking into Hapi which defines itself as being a framework...