Member-only story

Getting familiar with Couchbase for .NET SDK 3

Piyush Doorwar 💻
4 min readApr 2, 2021

Introduction

Couchbase NuGet Client CouchbaseNetClient has some major changes in 3.x version compared to its predecessor 2.x version. The aim here is to understand those differences between the two versions and how it has affected creating a connection with the Couchbase cluster and communication with the server.

CouchbaseNetClient

Couchbase client for .NET applications CouchbaseNetClient provides an API to connect and talk to Couchbase Server, a NoSQL document-oriented database.

CouchbaseNetClient 3.x Vs 2.x

The latest Couchbase .NET SDK 3 has a lot of upgrades over its predecessor.

Collections and Scopes

Collections & Scopes are new concepts in the Couchbase server added for organizational purposes.

A Collection is a logical data container within a bucket. These collections contain several documents. Documents can be categorized based on, say content types, i.e documents of similar content-type together form a Collection.

For example, within a bucket that contains trip booking information, documents that relate specifically to Car might be assigned to a car collection, while documents that relate to Driver might be assigned to a driver collection, and so on.

Documents of similar types makes a collection, which in turn a part of a bucket.
Buckets consist of Collectins which contains documents.

--

--

Piyush Doorwar 💻
Piyush Doorwar 💻

Written by Piyush Doorwar 💻

Software engineer by day, finance geek by night. Merging tech with money smarts and sprinkling wit on algorithms and interest rates!

No responses yet