couchbase-eventing

Design and troubleshoot Couchbase Eventing functions for document-driven workflows.

4|1|Updated May 28, 2026
One-click install
npx skills add https://github.com/celticht32/Couchbase-Skills-for-Claude.ai --skill couchbase-eventing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: couchbase-eventing
Source: https://github.com/celticht32/Couchbase-Skills-for-Claude.ai/tree/main/skills/couchbase/couchbase-eventing
Command: npx skills add https://github.com/celticht32/Couchbase-Skills-for-Claude.ai --skill couchbase-eventing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design, deploy, and troubleshoot Couchbase Eventing functions so you can react to document changes without guessing how the service behaves.

Core Features & Use Cases

  • Eventing Function Design: Write JavaScript handlers for OnUpdate, OnDelete, timers, and external HTTP calls.
  • Deployment Guidance: Configure source collections, metadata keyspaces, workers, bindings, consistency, and from_now deployments.
  • Troubleshooting and Tuning: Diagnose backlog, failed invocations, timeouts, timer issues, and performance bottlenecks.
  • Use Case: A team wants to sync order updates into a processed collection, notify another system when shipments complete, or generate derived documents whenever source data changes.

Quick Start

Ask for help designing an Eventing function that reacts to document updates and safely writes derived results to another collection.

Frequently Asked Questions about couchbase-eventing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Couchbase Eventing function to handle document mutations?

To handle document mutations in Couchbase Eventing, write JavaScript OnUpdate and OnDelete handlers that process source keyspace changes. You must configure source and metadata keyspaces, then use bindings to route derived documents to target collections.

Why is my Couchbase Eventing function failing on timer callbacks?

Couchbase Eventing timer callbacks fail when handler logic is not idempotent or when the metadata keyspace is missing. Ensure safe use of bindings and verify that the metadata keyspace is properly configured to track timer execution state.

How do I use N1QL queries inside a Couchbase Eventing function?

Using N1QL queries inside a Couchbase Eventing function requires configuring SQL++ bindings in your deployment settings. This allows your JavaScript handlers to execute N1QL queries against the cluster while processing document mutations.

Can I make external HTTP calls from Couchbase Eventing functions?

External HTTP calls are supported in Couchbase Eventing functions using curl. You must enable curl in your deployment configuration and ensure your handler logic safely manages timeouts and external API responses without blocking workers.

How do I troubleshoot backlog and performance issues in Couchbase Eventing?

Troubleshoot Couchbase Eventing backlog and performance issues by tuning worker counts and diagnosing failed invocations. Check deployment state, verify DCP stream health, and optimize handler logic to reduce processing bottlenecks.

What is the best way to deploy Couchbase Eventing functions safely?

The best way to deploy Couchbase Eventing functions safely is using from_now deployments for zero-downtime updates. Configure workers, bindings, and consistency settings carefully, and ensure handler logic is idempotent before deployment.