API Reference
CoordiNode exposes services via gRPC on port 7080 and REST/JSON on port 7081 (HTTP/JSON transcoding via embedded structured-proxy). Bolt protocol (7082) and WebSocket subscriptions (7083) are planned for a future release.
Services
| Service | Description | Proto |
|---|---|---|
| CypherService | OpenCypher-compatible query execution service. Each call runs one statement that commits on its own. Interactive transactions run on a session (coordinode.v1.session.SessionService), whose one stream keeps a transaction's commands in the order they were sent. | — |
| VectorService | Vector search operations. | — |
| TextService | Full-text search operations backed by tantivy (BM25 scoring, 30+ languages). | — |
| GraphService | Core graph CRUD operations. | — |
| SchemaService | Schema management: node label and edge type definitions, and the named constraints declared over them. A type definition describes an individual record: property types, requiredness, defaults and computed properties. It never declares uniqueness. Uniqueness, node keys and the other constraints are separate named objects, created and dropped through the constraint RPCs, which share one catalog and one admission path with CREATE CONSTRAINT / DROP CONSTRAINT in Cypher: a constraint created here is the same object a query sees, and the reverse. | — |
| BlobService | BlobStore service: large objects stored, read and deleted by id. An object is split into chunks of up to 256KB, each identified by the SHA-256 digest of its bytes. Every upload is its own blob with its own id, even when another blob holds the same bytes; identical chunks are stored once underneath and shared. Deleting a blob ends its hold on its chunks; the storage of chunks no blob, retained history or reader still needs is reclaimed in the background. A member of a group with other members refuses uploads and deletes with FAILED_PRECONDITION, reason BLOB_NOT_REPLICATED: blob bytes are held only on the member that writes them. | — |
| HealthService | Health checking service (grpc.health.v1 compatible semantics). | — |
| ClusterService | Cluster management operations. | — |
| VersionHandshake | The version handshake between two members of a consensus group. This file is frozen for the life of the product: its package, service, method and messages never change, so that members of any two releases can tell each other which version they run. Members whose versions differ exchange nothing but this. The same record also travels in the cn-version-handshake-bin request and response metadata of every other inter-node call; a call whose record does not match the receiver's version is refused before its payload is read. | — |
| CommandRoutingService | Whole commands carried from the member a client reached (the ingress) to the member that executes them: an autonomous statement, or a step of an interactive transaction at the leader, which alone holds open transactions. The executing member selects the view, evaluates, validates and commits; the ingress never ships a write set it evaluated itself. Served only on the inter-node channel, to admitted members of the same deployment; a client credential never reaches it, and an admitted member is not by that alone allowed to act as any caller: each command names the caller its ingress verified. A call is never forwarded again: a member that cannot run it answers with a refusal naming the leader it knows of, and the ingress decides whether to try once more. Values (parameters and rows) travel in the engine's own encoding, MessagePack of its value type: both members run the same version, which the version handshake establishes before any call here. A command that ran and failed answers with its RoutedError, never with a refusal: a refusal means the command did not run. The ingress names the version of the RoutedError encoding it reads in the session's cn-routed-error-codec metadata (a decimal number); a member with another one refuses the session before reading any command of it. | — |
| OperationService | Client operation identity: number a client's writes so that each takes effect at most once however it is retried, and find out after a lost reply, a reconnect, a restart of the client or a change of leader how a write stands, without running it again. A logical client (an issuer) is enrolled once per incarnation and numbers its writes itself, without a round trip per write. A write that carries an OperationRef (ExecuteCypherRequest.operation, CommitTransactionRequest .operation, session Execute.operation and Commit.operation) takes effect at most once: a retry of a write that already took effect runs nothing and is refused with FAILED_PRECONDITION, reason OPERATION_SETTLED, naming its outcome. A client that must survive its own crash persists the reference before it sends the write. | — |
| ChangeStreamService | CE Change Data Capture: the committed changes of a shard as logical events, streamed from its Raft log via gRPC server-side streaming. Each committed transaction is a unit; each of its effects is an event: a put, patch or removal of a node, a relationship's presence, its properties, or one version or discriminated instance of it. The client keeps an opaque cursor and reconnects with it to continue where it chose. At-least-once delivery. History is released only up to a cursor the client acknowledges with AcknowledgeSubscription. | — |
| RaftService | Raft consensus inter-node protocol (gRPC-only, no REST — internal). Uses opaque bytes for openraft type serialization (msgpack). This decouples the proto schema from openraft's internal generic types, making the protocol stable across openraft version upgrades. | — |
| SegmentTransferService | Inter-node bulk segment transfer: the transport for replication repair, node resync, and (per shard) migration. The source streams a segment's pieces to the target, which verifies each piece's checksum, decodes it, and writes it to local storage. BitTorrent-inspired: a target that has received pieces can in turn serve them to other targets, turning linear transfer into O(log N) fanout. This is an internal cluster RPC (node-to-node), not a client-facing API. | — |
| SessionService | Multiplexed bidirectional session. One long-lived bidirectional stream carries many concurrent operations for a single client. The client fires a batch of requests into the stream; the server executes them concurrently and streams results back as independent cursors, tagged by request id, in completion order rather than send order. An interactive transaction rides the same session as one interleaved sub-thread alongside non-transactional requests, and change-stream subscriptions ride it too, delivered in batches within the credit the client grants. The session is sticky to the serving node for its lifetime. Interactive transactions run only here: one stream delivers a transaction's commands in the order they were sent, which separate unary calls cannot. The unary query and change-stream RPCs remain for clients that cannot hold a stream. | — |
Common Types
Messages and enums shared across services: Common Types
Ports
| Port | Protocol | Status | Purpose |
|---|---|---|---|
| 7080 | gRPC (HTTP/2) | Active | Native gRPC API, inter-node communication |
| 7081 | HTTP/1.1 + JSON | Active | REST/JSON transcoding via structured-proxy |
| 7082 | Bolt | Planned | Neo4j wire protocol compatibility |
| 7083 | WebSocket | Planned | Subscriptions, live queries |
| 7084 | HTTP | Active | Prometheus /metrics, /health, /ready |
