Consistency Model

Write Consistency

A write is acknowledged only after:

  • WAL append is persisted (O_DIRECT + fsync)
  • Raft quorum commit (for replicated namespaces)

Single-node: linearizable writes for the shard leader. Replicated: linearizable writes within each Raft group.

Read Consistency Levels

-- Strong: leader-read after commit index >= required LSN (default for metadata/constraints)
SET read_consistency = 'strong';

-- Bounded staleness: follower read allowed if lag <= duration
SET read_consistency = 'bounded_staleness_5s';

-- Eventual: local read for CRDT edge sync (monotonic convergence)
SET read_consistency = 'eventual';
LevelBehaviorUse case
StrongLeader read, waits for commit indexMetadata, constraints, OLTP
Bounded StalenessFollower read if lag within configured boundRead replicas, analytics
EventualLocal read, monotonic convergenceCRDT edge sync, NodeDB-Lite

Snapshot Isolation

Cross-engine queries execute against a shared snapshot watermark. A query that combines vector search, graph traversal, and document field access sees a consistent point-in-time view across all engines.

Default isolation: Snapshot Isolation (SI) per query. Write skew detection is enforced for UNIQUE and FK constraints at commit.

Cross-Model Queries

RRF fusion and cross-engine joins include source watermarks in response metadata. This lets clients verify the freshness of results that span multiple engines.