Member-only story
Getting familiar with Couchbase for .NET SDK 3
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.