1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Copyright (c) 2024 ZettaScale Technology
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
//
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
//
// Contributors:
// ZettaScale Zenoh Team, <zenoh@zettascale.tech>
//
//! This module exposes the [ReplicationService] structure needed by the storage manager to
//! replicate the content of storage across a Zenoh network.
//!
//! This structure, and thus the replication, only works for storage that have the [History::Latest]
//! capability.
//!
//! From a high-level, the replication works by generating a concise view of the state of the
//! storage at regular time intervals. To do so, the time is divided in 'intervals' (themselves
//! divided into 'sub-intervals') and each publication mapped to one such group. Then a fingerprint
//! of each group is computed and these fingerprints are sent over the network to other storage for
//! comparison.
//!
//! [History::Latest]: zenoh_backend_traits::History::Latest
pub use ;
pub use ReplicationService;