Skip to main content

edgestore_repl/
lib.rs

1//! `edgestore-repl` — HTTP transport layer and pull-only anti-entropy loop.
2//!
3//! Provides:
4//! - `HttpReplicationClient` — implements `ReplicationProtocol` over HTTP + MessagePack
5//! - `HttpReplicationServer` — serves pull-only endpoints with `?debug=json` support
6//! - `AntiEntropyLoop`       — background thread for pull-only sync with per-peer cursor
7//! - `S3RemoteStore` (with `s3` feature) — `RemoteStore` impl using AWS SDK for S3
8//!
9//! ## What this crate does NOT do
10//!
11//! `edgestore-repl` is a **transport** crate. It moves segments between nodes or to S3.
12//! Cache eviction, tiering policy, and transparent read-through live in `edgestore-tier`.
13
14pub mod anti_entropy;
15pub(crate) mod wire;
16pub mod filesystem_remote_store;
17pub mod http_client;
18pub mod http_server;
19pub mod replicated_engine;
20
21#[cfg(feature = "s3")]
22pub mod s3_remote_store;
23
24pub use anti_entropy::{AntiEntropyLoop, PeerCursor};
25pub use filesystem_remote_store::FilesystemRemoteStore;
26pub use http_client::HttpReplicationClient;
27pub use http_server::HttpReplicationServer;
28pub use replicated_engine::ReplicatedEngine;
29
30#[cfg(feature = "s3")]
31pub use s3_remote_store::S3RemoteStore;