Couchbase-Server is an opensource, distributed (shared-nothing) NoSQL document-oriented databse. It is desgined for interactive applications involving multiple users and concurrency operations. Couchbase server provides key-value or JSON document access scaled from one single machine to multiple machines. Couchbase server supports the Memcached client protocol and provides extra features like disk persistence, data replication, live cluster reconfiguration, rebalancing and multi-tenancy with data partitioning.
In 2010, the origination of Couchbase, Membase, was developed by a company called NorthScale which was founded by developers from Memcached project.
In February, 2011, the Membase project founders and Membase, Inc. merged with CouchOne(a company with many engineers behind CouchDB) as a new company called Couchbase, Inc.
In January 2012, Couchbase Server 1.8 was released and 1.8 was the first version after rename from Membase.
In December 2012, CouchBase Server 2.0 was released. New features like JSON new document store, indexing and querying, incremental MapReduce and replication across data centers are added.
Couchbase Server (Enterprise Edition) applies data compression to documents with open-source library Snappy. It provides three modes of compression.
Off. The Couchbase Server decompresses the document if it is compressed, and stores the uncompressed document in memory but recompresses it when storing on disk. Couchbase server sends the document in uncompressed form.
Passive. When Couchbase Server receives the compressed document, it stores the compressed document in memory and disk. Also, the documents are sent in compressed form.
Active. Couchbase Server stores and sends compressed document even the document is uncompressed when it was received.
Couchbase Server uses Couchstore to store core data operations. Each vBucket is represented as a separate Couchstore file in the file system. Couchstore uses a B+tree structure to quickly access items through their keys. Couchstore uses an append-only write model for efficient and safe writes.
Three views are supported by Couchbase Server: MapReduce views, Spatial views and Global Secondary Indexes (GSI) views.
MapReduce views can be accessed via the View API.
Spatial views can be accessed via the Spatial View API.
N1QL queries with Global Secondary Indexes (GSI) and MapReduce views.
B+Tree Skip List Hash Table Inverted Index (Full Text)
A few of indexes are available in Couchbase Server:
Primary Index is based on on the unique key of every item in a specified bucket which contains a full set of keys in a given key space.
Global Secondary Index (GSI) is the most frequently used index in Couchbase Server, for queries performed with the N1Ql query-language.
The indexer for GSI creates a B+ tree for fast scans on the index key. Also, there is a Memory-Optimized GSI index which uses the skip-list structure as opposed to B-tree indexes.
Full Text is provided by the Search Service and it contains targets derived from the textual contents of documents within one or more specified buckets.
View: Supports Couchbase Views, with fields and information extracted from documents.
Optimistic Concurrency Control (OCC)
Couchbase Server offers both optimistic and pessimistic locking to guarantee concurrency.
https://github.com/couchbase/manifest
https://docs.couchbase.com/home/index.html
Couchbase, Inc.
2010
Membase
C, C#, Go, Java, JavaScript, PHP, Python