Skip to main content

Module conflict_resolver

Module conflict_resolver 

Source
Expand description

Conflict resolution for cross-DC vector index synchronisation.

When two datacenters each accept writes during a network partition they can accumulate divergent versions of the same index entry. This module provides strategies for reconciling those versions when connectivity is restored.

§Design

  • IndexVersion carries a version number, timestamp and the actual vector data so the resolver can make a purely logical decision without touching the storage layer.
  • ConflictResolver is stateless; call resolve any number of times.
  • Resolution describes what the caller should do with the two versions.

§Pure Rust Policy

No CUDA runtime calls or FFI.

Structs§

ConflictResolver
Stateless conflict resolver.
IndexVersion
A versioned snapshot of a single vector entry.
MergedIndex
A merged index entry produced when ConflictPolicy::MergeUnion is applied.

Enums§

ConflictPolicy
Strategy for resolving a write conflict between two index versions.
Resolution
The outcome of a conflict resolution operation.