Category: GoLang

Asynchronously Perform Subdocument Mutations in Couchbase with Golang

Not too long ago I had written about using the Couchbase Server subdocument API with the Go SDK. Doing subdocument operations is incredibly useful if you’d like to change or access a part of a potentially huge NoSQL document. Subdocument...

Hashing Password Data in Couchbase with Golang and BCrypt – Video

I recently wrote about hashing password data using Golang before storing them into Couchbase. This is very useful because user data is incredibly sensitive. To further build upon what I wrote about, I thought it would be great to show...

Developing a User Profile Store with Golang and a NoSQL Database

Remember the tutorial series I wrote in regards to creating a user profile store with Node.js and NoSQL? That tutorial covered a lot of ground, from creating a RESTful API with Node.js, handling user sessions, data modeling, and of course...

Handle Data Modeling Errors in a Golang with Couchbase Application

I’ve been developing with Couchbase and the Go SDK for a while now, but recently I ran into an issue that I deemed to be a bug in the SDK after hours of troubleshooting. I was trying to execute a...

Securely Storing Password Data in Couchbase with Golang and BCrypt

When writing web applications that store passwords for your users, it is never a good idea to store them as plain text in your database, whether that be NoSQL or RDBMS. Last year I wrote about using BCrypt with Node.js...

Deploy a Golang Web Application and Couchbase as Docker Containers

In my development series regarding Docker containers for the web application developer, I had already gone over deploying Java and Node.js applications as containers alongside Couchbase Server Containers.  This time around I thought it would be cool to deploy a...

Import Your MongoDB Collection Data into Couchbase Server with Golang

If you’ve been keeping up, you’ll remember I wrote a few tutorials around converting your MongoDB powered Node.js applications to Couchbase.  These included a MongoDB Query Language to N1QL tutorial as well as a Mongoose to Ottoman tutorial.  These were...

SDK Features – New For Couchbase 4.6

Along with this week’s Couchbase Server 4.6 release we have a super packed release with several new SDK features to help you streamline development. From efficiently managed Data Structures to the latest support for .NET Core, it is time to update to...

/ February 16, 2017

Using Couchbase in a Golang Websocket Chat Application

Not too long ago I wrote about creating a chat application that used Angular 2 for the front-end and Golang for the back-end. The message communication between the two was possible because of websockets. In this example, any number of...

Using Golang to get Multiple Couchbase Documents by Key in a Single Operation

Couchbase and the various server SDKs offer many different ways to query for data. You could write N1QL queries, view queries, or you could even lookup documents by their key. Of the three possible ways to obtain data, doing lookups...