Skip to main content

Connectivity

This section explains how applications and tools reach a RushDB server: which network protocols exist, what each one can express, and how clients authenticate and select a tenant. Start here when you choose a client library or put RushDB behind a proxy.

One protocol, several transports​

All transports execute the same versioned request envelope (Protocol v1) against the same engine. HTTP and gRPC carry that envelope directly. The PostgreSQL wire and Bolt listeners translate their native messages into it.

TransportDefaultEnabled whenCarriesTLS
HTTPport 3000alwaysevery operation and every enabled languageyes (--tls-cert/--tls-key)
gRPCoff--grpc-port is non-zeroevery operation and every enabled languageyes (--tls-cert/--tls-key)
PostgreSQL wireport 5432the sql language is enabledsingle SQL statementsyes (--tls-cert/--tls-key)
Boltoff--bolt-port is non-zero and cypher is enabledCypher statements and Bolt transactionsyes (--tls-cert/--tls-key)

What each transport can express:

CapabilityHTTPgRPCPostgreSQL wireBolt
Native record, relationship, and aggregate queriesyesyesvia SQLvia Cypher
All enabled statement languagesyesyesSQL onlyCypher only
Vector, full-text, and hybrid searchyesyesnono
Multi-request transactionsyesyesnoyes (BEGIN/COMMIT)
Ingest, index management, backup, tenant purgeyesyesnono
Capability tokensyesyesyesyes

Listener security​

All listeners bind the --listen address (default 127.0.0.1) and share one TLS certificate (--tls-cert/--tls-key). Every transport accepts the bootstrap token and capability tokens. The server enforces these guards at startup:

  • A loopback address is always allowed.
  • On a single-tenant server, a non-loopback listener requires TLS or --allow-insecure-listen.
  • On a multitenant server, a non-loopback HTTP listener requires TLS or --allow-insecure-listen; gRPC, PostgreSQL wire, and Bolt require TLS and --capability-secret.

Port 0 disables a listener: nothing is bound. See Security.

Choosing a transport​

  • Application backends and SDKs: HTTP. It exposes everything, supports TLS and per-tenant capability tokens, and is the recommended bulk-load path (HTTP/1.1 keep-alive).
  • Service meshes: gRPC, which carries the identical envelope over HTTP/2.
  • SQL tools and BI clients: PostgreSQL wire with a PostgreSQL driver.
  • Neo4j-style applications: Bolt with Cypher.

Pages in this section​

  1. HTTP API: the Protocol v1 envelope, operations, and errors.
  2. PostgreSQL wire protocol: psql and drivers.
  3. gRPC: the Database.Execute service.
  4. Bolt: Cypher over the Neo4j wire protocol.
  5. CLI: the rushdb command.
  6. Authentication: tokens, capability tokens, and tenant selection.

See also​