Couchbase distributed NoSQL database. Use for mobile and edge.
Couchbase works as a Key-Value store (managed memory cache) + Document Database. It is famous for its "memory-first" architecture and N1QL (SQL for JSON).
SELECT * FROM users JOIN orders) on JSON documents.-- N1QL Query
SELECT u.name, ARRAY_AGG(o.item) as orders
FROM `travel-sample`.inventory.users u
JOIN `travel-sample`.inventory.orders o ON u.id = o.user_id
WHERE u.city = "Paris"
GROUP BY u.name;
Writes go to memory first (microseconds), then disk. Reads serve from memory if hot.
The fully managed Database-as-a-Service (DBaaS) version. Best for 2025 usage.
Hierarchy: Cluster -> Bucket -> Scope -> Collection -> Document. Maps roughly to Database -> Schema -> Table -> Row.
Do:
Don't: