Category: Best Practices and Tutorials

Create a User Profile Store with Node.js and a NoSQL Database

Create a User Profile Store with Node.js and a NoSQL Database

There are many use-cases for NoSQL databases, one that I encounter frequently is creating a user profile store and session. This use-case lends itself to a NoSQL database. Profiles often need to be flexible and accept data changes. While possible...

Defining Scan Consistency in a Node.js with Couchbase Application

Defining Scan Consistency in a Node.js with Couchbase Application

Have you ever created an application where you needed to save a document into Couchbase and then immediately query for that created document? It happens to me all the time when I’m developing. Take for example, adding new data into...

Using Couchbase with R

Using Couchbase with R

I have seen a lot of interest in the field about using Couchbase with R. It is an easy integration, so here you have some examples to start using it right now. As a little background, R is a language...

Couchbase Meetup Project on the OCEAN Stack Available

Couchbase Meetup Project on the OCEAN Stack Available

I was recently at two different Meetup groups in Southern California presenting on what I’m calling, the OCEAN stack, which is composed of Ottoman.js, Couchbase Server, Express Framework, Angular, and Node.js. We had a great turnout of developers hungry to...

Bringing SQL to NoSQL – Rich, Declarative Querying for JSON

Bringing SQL to NoSQL – Rich, Declarative Querying for JSON

Couchbase Server is a document-oriented NoSQL database. Most NoSQL systems force you to sacrifice the rich querying capabilities of SQL in trade for the other benefits they offer. At Couchbase, we’ve developed the N1QL query language to solve this problem....

Couchbase Meetup Project on NativeScript, Angular, and NoSQL Development Available

Couchbase Meetup Project on NativeScript, Angular, and NoSQL Development Available

I recently hosted a Couchbase Meetup in Mountain View, California, on the topic of NativeScript, Angular and NoSQL development. With special guest, TJ VanToll from Progress, we discussed mobile application development and how Couchbase can be included for NoSQL storage...

Certificate Pinning in your Couchbase Mobile iOS App

Certificate Pinning in your Couchbase Mobile iOS App

Communication between Couchbase Lite and Sync Gateway is encryped and secured using SSL/TLS. The SSL/TLS protocol relies on a Public Key Infrastructure (PKI) mechanism using a X.509 certificate to establish the Sync Gateway server’s identity. The certificate is typically issued/signed...

Getting Started with NoSQL Using Couchbase Server and PHP

Getting Started with NoSQL Using Couchbase Server and PHP

A few days ago I wrote about using PHP with Docker and Couchbase, but I never really got into best practices of going all in with PHP and NoSQL databases. For example, how do you read and write data with...

Deploy a PHP with Couchbase Application as Docker Containers

Deploy a PHP with Couchbase Application as Docker Containers

Earlier in the year I wrote about containerizing applications written in various development technologies that communicate with Couchbase Server. For example, I had written about deploying a Golang application with Docker, a Java application with Docker, and a Node.js application...

Managing Database Sizes in Couchbase Mobile and Conflict Resolution

Managing Database Sizes in Couchbase Mobile and Conflict Resolution

Couchbase Mobile uses a Multi Version Concurrency Control (MVCC) technique for handling conflicts. One of the challenges in a MVCC based system is that over time, a document can grow to have multiple revisions. One can conclude that if all...

Simplify Your NoSQL Cluster by Moving From MongoDB Sharding to Couchbase Containers

Simplify Your NoSQL Cluster by Moving From MongoDB Sharding to Couchbase Containers

When I’m out at events and talking to NoSQL users and advocates, I often hear stories on why people have decided to start using Couchbase after having come from MongoDB.  Take, for example, an interview I did with Tom Coates...

Demystifying Conflict Resolution in Couchbase Mobile

Demystifying Conflict Resolution in Couchbase Mobile

Conflicts can occur in replication environments where a document can be updated concurrently by one or more writers. This is especially common in mobile environments wherein unreliable network connections may result in concurrent changes from multiple devices not being synchronized in...