Skip to content

Protocols

One server, several ways in. Every one of them runs under the caller's access profile: the same grants, field masks, row rules and transaction scope, whichever protocol carries the call.

Applications, COBOL programs, AI agents and SQL tools reach oliviadb-server, each through its protocol oliviadb-server native aggregates DL/I databases agent memory and state access profiles on every call oliviadb-sql-server (read only) Service: Rust, Java, Node.js, Python native protocol :7655 Any HTTP client, scripts, browsers HTTPS / JSON :8443 COBOL / C program + liboliviadb_dli DL/I client mode :7655 AI agent MCP POST /mcp Redis client RESP (resp_listen) psql, JDBC, BI tools PostgreSQL wire :5432 COBOL batch: liboliviadb_dli in process DL/I store (directory) DL/I calls, no network

Applications, COBOL programs, AI agents and SQL tools reach one oliviadb-server, each through its protocol

The protocols

HTTP and JSON (network API, by example). Every feature: aggregates (reads, listings, lookups, search, writes, transactions), the change stream (JSON batches or server-sent events), agent memory and state, DL/I views, operator reports. Any language with an HTTP client; an OpenAPI document at /v1/openapi.json. TLS 1.3; API keys or JWTs.

The native protocol (specification). Length-prefixed binary frames on one long-lived TLS connection (or a Unix socket), many requests in flight at once. Reads come back as rows: each node's stored key and value bytes, described once per connection by a type descriptor, decoded only when a field is read; the server does no JSON and no field decoding on the way out. Writes and transactions are the HTTP routes' (their JSON answer). The change stream as binary records. Agent memory and state stay on HTTP. Clients: Rust, Java, Node.js, Python.

DL/I (DL/I quick start). CBLTDLI and its siblings, for COBOL, PL/I-style, C, Rust, Java and Python programs written for IMS. In process: liboliviadb_dli opens the store itself, the fastest path, one process per store. Through the server: the same library in client mode sends each call over the native protocol, so many programs share the databases with program isolation and the server's view (DL/I programs).

MCP (MCP server). The Model Context Protocol for AI agents, over HTTP (POST /mcp) or stdio (oliviadb-mcp): memory tools (remember, recall, facts, watches) and read access to operational data through agent views with their masks and row rules (the sources of systems of record are in OliviaDB Enterprise).

PostgreSQL wire protocol (SQL projection). oliviadb-sql-server: DL/I databases (an IMS replica) as read-only SQL tables for psql, JDBC, ODBC and BI tools; on the standby of a pair, so reports do not load the primary.

Redis protocol (facades). RESP2/RESP3 over native aggregates: a key is a node's path, a node a hash, MULTI/EXEC a transaction. For applications that already speak Redis.

Side by side

HTTP / JSON Native protocol DL/I in process DL/I through the server MCP PostgreSQL wire Redis protocol
For any application, scripts, other languages services in Rust, Java, Node.js, Python IMS batch programs IMS programs sharing databases, online AI agents reports, BI, ad-hoc SQL Redis clients
Data aggregates, memory, state, DL/I views aggregates, DL/I views DL/I databases DL/I databases memory, operational views DL/I databases aggregates
Reads JSON documents binary rows, decoded per field the program's I/O area the program's I/O area JSON tool results text rows hashes
Writes yes yes (JSON acknowledgements) yes yes memory only no (read only) yes
Transactions POST /v1/txn, one aggregate record the same sync points (CHKP, end of program) sync points, program isolation per tool call read only MULTI/EXEC, WATCH
Streaming change stream (batches, SSE) change stream (binary), results over several frames – – watches – –
Typing JSON per the schema; typed clients generated the schema's types in descriptors the segment layouts the segment layouts JSON SQL column types strings
Latency one HTTP exchange per call; JSON encoding on both sides lowest over the network: no per-request connection, no JSON on reads (against PostgreSQL) a function call one round trip per call one HTTP exchange as PostgreSQL clients one round trip
Port (default) 8443 (image) 7655 – 7655 or a Unix socket 8443 (/mcp) 5432 configured (resp_listen)

What to use

  • A new service in Rust, Java, TypeScript (Node.js) or Python: the native protocol through the official client. It is the fastest way to read whole aggregates, and the clients decode rows lazily. Use HTTP from the same client for agent memory.
  • Another language, a script, a browser, a serverless function: HTTP and JSON.
  • Existing IMS programs: DL/I. In process for batch jobs that own their databases; through the server as soon as several programs, or programs and network clients, share them.
  • AI agents: MCP, under an agent profile with masks and row rules; for data agents write, give them a service of yours on the native protocol with a narrow profile.
  • Reports and BI on migrated IMS data: the SQL projection, on the standby.
  • Feeding other systems (search, warehouse, caches): the change stream, over HTTP (SSE) or the native protocol, resumed from its position.
  • An application already written for Redis: the Redis facade, as a step towards the native API.