PROVIDER - Distributed document database
Couchbase
Couchbase offers a distributed JSON document database as self-managed Server or managed Capella.
4pts
Service Overview
Couchbase is a distributed JSON document database with key-value access and SQL++ queries for application data. It is offered as self-managed Couchbase Server and as Capella Operational, with different deployment and billing models.
The database supports indexes, full-text search and cross-data-center replication, with multilingual SDKs for application access. Couchbase Lite and sync services handle mobile data synchronization. Capella runs managed clusters in selected AWS, Google Cloud and Azure regions; availability depends on the cloud provider and feature.
Key Strengths
- Key-value access and SQL-like queries operate on documents in the same database.
- Indexing and full-text search services work with document storage for application queries.
- SDKs for multiple languages let applications connect to and read database documents.
- Self-managed servers and managed clusters offer different deployment and operations models.
- A mobile database exchanges offline data with the backend through a sync service.
Limitations
- The Community Edition license limits nodes and cores per node and excludes cross-data-center replication.
- Each organization can deploy only one free managed cluster, which turns off after inactivity.
- Basic plan nodes run in one availability zone rather than across multiple zones.
- A stopped paid cluster can still incur storage and other separately billed charges.
- Managed and free-tier locations do not cover every region offered by the cloud providers.
Product Ecosystem
Couchbase Server
Server provides self-managed document, key-value, query and index services. Community Edition is free to deploy, with a license limit of 5 nodes per cluster and 4 cores per node and no XDCR; Enterprise Edition uses a commercial license and subscription with advanced features and support.
Capella Operational
Capella provides managed Couchbase Server clusters. Basic, Developer Pro and Enterprise are support plans; paid single-node clusters have no SLA. Multi-zone deployment requires the appropriate plan and node configuration.
Couchbase Lite and Sync
Couchbase Lite stores data on devices; self-managed Sync Gateway or managed App Services synchronizes mobile data with the backend. App Services has separate resources and billing and is not a database node plan.
SDKs and Integration
Applications can access documents and queries using SDKs such as Python and Java; connectors such as Kafka exchange data. SQL++ queries require suitable permissions and indexes; cross-cluster migration also involves bucket, collection and index configuration.
Use Cases
- Fit: Applications needing key-value operations and SQL++ queries can use a self-managed cluster or a managed cluster in a supported region.
- Evaluate: Applications serving mainland China must assess data residency, cross-border connectivity, latency and compliance obligations against their deployment region.
Pricing & Billing Selection
Paid plan rows show the website's starting prices per node-hour, not complete cluster bills; bucket backup is a separate charge for AWS N. Virginia.
| Billing mode / size | Reference unit price | Configuration and billing | Workload |
|---|---|---|---|
| Capella free cluster | $0 / free cluster | 1 single-node cluster per organization, 8 GB RAM; AWS data storage 10 GB | Prototyping and learning |
| Capella Basic | from $0.15 / node / hour | Minimum 1 node, deployed in a single availability zone | Single-node development |
| Capella Developer Pro | from $0.35 / node / hour | Minimum 1 node; 3 nodes required for multi-zone deployment | Single-node or multi-zone deployment |
| Capella Enterprise | from $0.49 / node / hour | Minimum 3 nodes, with multi-zone deployment | Multi-node deployment |
| AWS N. Virginia bucket backup | $0.07 / GB / month | Bucket backup storage is charged separately; volume and retention affect cost | Backup retention |
Website plan starting prices as of 2026-11; actual rates depend on region, cloud provider and configuration. The website's detailed configuration amounts differ from its plan cards and should not be treated as the same pricing basis. Running clusters are billed by clock hour; stopped clusters still incur storage charges, and inter-region and internet egress are extra. Bucket backup list pricing uses GB / month; the billing documentation measures usage hourly in GiB. Free clusters turn off after more than 72 hours and are deleted after more than 30 days of inactivity.
FAQ
-
How do Community and Enterprise licenses differ? Community is free to self-manage, but its license limits a cluster to 5 nodes and each node to 4 cores and does not permit cross-data-center replication. Enterprise uses a commercial license and subscription, including advanced security, operations features and contractual technical support.
-
What are the free managed cluster limits? The free plan requires no credit card and permits one free cluster per organization. It turns off after more than 72 hours of inactivity and is deleted after more than 30 days; upgrading deletes the existing free cluster. Back up and transfer its data with cbbackupmgr first; it is not automatically migrated into a paid cluster.
-
How should mainland China users assess managed regions? Managed clusters are available only in the listed cloud provider regions, not every region offered by those providers. AWS locations include Hong Kong and Singapore; cross-border latency, data transfer and compliance obligations depend on the workload and deployment location.
-
How are managed cluster charges calculated? Paid clusters are billed by clock hour and node configuration; backup and inter-region or internet egress are additional. Storage-related charges continue while a cluster is off, and the total depends on cloud provider, region, support plan, configuration and data transfer volume.
-
How can an application connect or migrate? Official SDKs in multiple languages access documents and run SQL++ queries. Migration involves more than documents: buckets, scopes, collections, indexes and permissions also need attention; the official backup tool can transfer a free cluster, but the destination cluster still needs access permissions.
Integration & Code Examples
On an initialized local Server, set CB_USER and CB_PASSWORD to an account allowed to read cluster information, then run this read-only request; it does not connect to the cloud or create data.
import base64
import json
import os
import sys
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
user, password = os.getenv("CB_USER"), os.getenv("CB_PASSWORD")
if not user or not password:
sys.exit("Set CB_USER and CB_PASSWORD.")
token = base64.b64encode(f"{user}:{password}".encode()).decode()
request = Request("http://127.0.0.1:8091/pools/default",
headers={"Authorization": f"Basic {token}"})
try:
with urlopen(request, timeout=5) as response:
nodes = json.load(response)["nodes"]
if not isinstance(nodes, list):
raise ValueError("Invalid nodes")
count = len(nodes)
except HTTPError as error:
try:
error.close()
except OSError:
sys.exit("Request failed; response close failed.")
sys.exit("Request failed.")
except (URLError, OSError, ValueError, KeyError, TypeError):
sys.exit("Request or response handling failed.")
print(f"Cluster nodes: {count}")
Community & Resources
Server edition documentation, Capella plans and regional prices, Capella billing documentation, AWS regions and configurations, free-cluster lifecycle and upgrades and the Couchbase forums cover editions, bills and community discussions.
Articles
- 01 GitLab CI/CD Pipeline Practices 07-18
- 02 Prometheus Monitoring and Alert Setup 07-18
- 03 Choosing Free Fonts for Commercial Use 11-25
- 04 BaaS Platform Selection and Migration Scope 11-29
- 05 What Ansible Automation Really Costs 07-18
- 06 Migrating Spring Boot 4 to Native Image 11-29
- 07 Backend Language Selection and Runtime Boundaries 11-29
- 08 Docker Single-Host Deploy: Build to TLS 07-18
- 09 Django, FastAPI, or Flask for a Python Web Project 11-29
- 10 Choosing a Node.js Backend Framework 11-29