Skip to content

Deployment and agent interfaces

Run where
your work happens.

Inside an application, behind a server endpoint or on infrastructure you control. Four execution modes, plus MCP and ACP for your agents.

01 / Embedded

Make the database part of your application.

In your process

An application-owned engine with no separate database server. A familiar starting point if you have used SQLite, with RedDB’s models available in the same engine.

A fit for: Local applications, desktop tools and services that own their data lifecycle.

Read the embedded guide →
Your applicationEmbedded RedDBLocal data

Use an embedded driver with memory:// for ephemeral data or file:/// for persistence. Your application owns opening, flushing, closing and maintenance. Native language facades use a version-matched engine ABI.

TypeScript
import { connect } from '@reddb-io/sdk';
const db = await connect('file:///absolute/path/data.rdb');

02 / Server + read replicas

One database endpoint for your applications.

Independent process

Run a dedicated RedDB server and connect over RedWire, HTTP or gRPC. Add read replicas when you need a separate process to serve reads.

A fit for: Shared application backends and self-hosted services.

Read the server + read replicas guide →
ApplicationsPrimaryRead replicas

The primary owns writes. Replicas bootstrap from a snapshot and consume logical WAL updates. Replication is still early: qualify failover and recovery with your workload before depending on it.

Shell
red server --path ./data.rdb

# Local HTTP development listener
red server --http-bind 127.0.0.1:5000 --path ./data.rdb --dev

03 / Cluster

Distribute ownership across nodes.

Integration in progress

A sharded architecture with collection ranges, ownership epochs and routing decisions. The mental model is a distributed database such as Cassandra, with RedDB’s own range ownership contract.

A fit for: Evaluating data placement, range ownership and distributed workloads.

Read the cluster guide →
Collection rangesOwner nodesReplica placement

The control-plane model includes placement, routing and rebalancing decisions. Full transport and storage integration is still in progress; distributed SQL planning remains on the roadmap. This is not a claim of complete production cluster support.

04 / Serverless

Let compute follow the workload.

Finite lifecycle

Run the engine with remote storage and an explicit cold-start, warmup and reclaim lifecycle. Preserve durable state beyond the life of a compute instance.

A fit for: Services with bounded execution windows and storage independent of compute.

Read the serverless guide →
Cold startReady / serveReclaim

Serverless uses readiness gates, resource budgets and writer fencing to coordinate access to remote storage. Choose the storage backend and lifecycle controls for your environment. Driver deployment qualification is separate from engine capability.

Two ways to connect agents

Tools for your agent.
Or a database that answers.

MCP and ACP sit alongside the execution modes. Choose who owns the conversation, then connect the database.

05 / MCP

Give your agent database tools.

An existing agent keeps control of the conversation and calls RedDB tools for queries, catalog discovery and ASK. Launch the stdio bridge against a local database or an authenticated remote server.

MCP configuration guide →
Shell
red mcp --path ./data.rdb

# Remote bridge: credentials come from your environment
red mcp --uri https://db.example --token "$REDDB_TOKEN"

Remote mode exposes a smaller tool set than embedded mode. HTTP, gRPC and RedWire endpoints are supported; cluster and WebSocket MCP URLs are not yet supported.

06 / ACP

Let RedDB ASK be the agent.

An ACP-compatible host launches RedDB and manages conversational ASK sessions. The host can render plan updates, completed query steps and the final answer.

ACP configuration guide →
Shell
red acp --path /absolute/path/data.rdb

Currently embedded-only. ACP v1 is stable; v2 remains draft. The command waits for JSON-RPC messages over stdio and is not an interactive terminal. Configure the ASK provider before launching the host.

Choose your driver, too.

Execution modes and transport support have separate qualification. Check the current matrix for the language facade you plan to use.