server-connection-nodejs

Installation
SKILL.md

Couchbase SDK Connection Management — Node.js

Platform-agnostic concepts (connection string formats, timeout semantics, durability, sub-document, troubleshooting): shared/server/sdk-connection-concepts.md

The One Rule: One Cluster Per Process

Create one cluster object per application process and reuse it. Creating a new connection per request pays TCP + TLS + auth overhead (50–500ms) and leaks connections.


Module-Level Singleton

'use strict';
const couchbase = require('couchbase');

let cluster = null;
let collection = null;
Installs
2
First Seen
Jun 18, 2026
server-connection-nodejs — couchbaselabs/agent-skills