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§
- Hybrid
Clock - Hybrid Logical Clock that combines physical milliseconds with a monotonic logical counter.
- Peer
Status - Snapshot of a known peer’s sync state.
- Sync
Engine - The primary entry-point for the sync layer.
- SyncOp
- A single recorded mutation (insert, update, or delete) on a row.
- Sync
Result - Summary of a completed
apply_remote_opscall.
Enums§
- Conflict
Strategy - Conflict resolution strategy for
apply_remote_ops. - OpType
- The kind of mutation being recorded.