Category: Best Practices and Tutorials

Divide and Conquer: Couchbase GSI Index partitioning.

Divide and Conquer: Couchbase GSI Index partitioning.

In Couchbase, data is always partitioned using the consistent hash value of the document key into vbukets which are stored on the data nodes.  Couchbase Global Secondary Index (GSI) abstracts the indexing operations and runs as a distinct service within...

Keshav Murthy April 11, 2018
Define Your Own Durability Requirements in Couchbase with the SDKs

Define Your Own Durability Requirements in Couchbase with the SDKs

As a Developer Advocate at Couchbase, I go to many events and interact with a great deal of developers. When talking about Couchbase, I get a lot of questions around the durability of data that is being created. For example,...

Auto-FailOver Features in Couchbase Server 5.5

Auto-FailOver Features in Couchbase Server 5.5

Couchbase further improves high availability for mission-critical deployments and reduces operator intervention. Couchbase enhances the detection of common disk failures and automatically fails over the node with bad disks saving operators time and energy. It also handles multiple server failures...

Developing a Bitcoin Cryptocurrency Application with Node.js and NoSQL

Developing a Bitcoin Cryptocurrency Application with Node.js and NoSQL

I’ve been following cryptocurrency-related subjects such as Bitcoin for a few months now and I’m very fascinated with everything that has been going on. As a web application developer, one topic that I’ve been particularly interested in learning more about...

IPv6 Galore With Couchbase

IPv6 Galore With Couchbase

Every single device on the internet, whether it be a laptop computer, cell phone, camera, or even your TV has an IP address. The total number of Internet Protocol version 4 (IPv4) addresses is over 4 billion, which is far...

Perry Krug March 22, 2018
Using Couchbase Analytics with Node.js and JavaScript

Using Couchbase Analytics with Node.js and JavaScript

Note: This post uses the the Couchbase Analytics Data Definition Language as of the version 5.5 preview release.  For updates and information on breaking changes in newer versions, please refer to Changes to the Couchbase Analytics Service. The Couchbase Analytics Service,...

Document Conflicts & Resolution in Couchbase Mobile 2.0

Document Conflicts & Resolution in Couchbase Mobile 2.0

Document conflicts can occur in distributed environments that support data synchronization, wherein a document can be updated concurrently by one or more writers. This is especially common in mobile environments where unreliable network connections may result in concurrent changes from...

Using Couchbase Analytics for Complex and Efficient Queries in a Java Application

Using Couchbase Analytics for Complex and Efficient Queries in a Java Application

Note: This post has been updated to reflect the production version of the Couchbase Analytics Data Definition Language. Not too long ago I had written about using Couchbase’s new Analytics service, sometimes referred to as CBAS, within a Node.js application....

Peter Reale March 16, 2018
Detect Sensitive Data Automatically With Couchbase Functions

Detect Sensitive Data Automatically With Couchbase Functions

Storing sensitive information in a database without encryption is not a good thing, but have you ever done in on accident due to bugs in your application code or a misconfiguration in your database? What if there was a way...

Test Couchbase Sync Gateway REST API interface using Postman

Test Couchbase Sync Gateway REST API interface using Postman

The Couchbase Sync Gateway is one of the core components of the Couchbase Mobile stack. At a high level, it is responsible for securely routing and syncing data between web and mobile clients and Couchbase server. It supports a REST...

Store more for less using data compression in Couchbase Server 5.5

Store more for less using data compression in Couchbase Server 5.5

With the launch of Couchbase Server 5.5, we have introduced end-to-end compression which allows data to remain compressed through: client to cache, to disk storage, to replication of data across data centers. Since most of our customer data is in JSON text...

Simplified Couchbase Server Cluster Creation via Docker

Simplified Couchbase Server Cluster Creation via Docker

It’s pretty straight-forward to run an instance of Couchbase Server in a Docker container. It takes a bit more work to set up and fully configure a cluster. In this post, I’m going to walk through a shell script I...