Skip to main content

Module sync

Module sync 

Source
Expand description

§Sync Module

Hybrid Logical Clock (HLC) based sync engine for multi-node AgentDB replication.

The sync engine tracks mutations to any table via an operation log, packs timestamps as (physical_ms << 16) | logical so they sort correctly across nodes, and applies remote ops with a pluggable conflict strategy.

Structs§

HybridClock
Hybrid Logical Clock that combines physical milliseconds with a monotonic logical counter.
PeerStatus
Snapshot of a known peer’s sync state.
SyncEngine
The primary entry-point for the sync layer.
SyncOp
A single recorded mutation (insert, update, or delete) on a row.
SyncResult
Summary of a completed apply_remote_ops call.

Enums§

ConflictStrategy
Conflict resolution strategy for apply_remote_ops.
OpType
The kind of mutation being recorded.