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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Copyright (c) Sean Lawlor
//
// This source code is licensed under both the MIT license found in the
// LICENSE-MIT file in the root directory of this source tree.
// #![warn(missing_docs)]
// #![warn(unused_crate_dependencies)]
// #![cfg_attr(docsrs, feature(doc_cfg))]
/// The actor-first heart of the database: per-fragment dispatchers
/// routing to worker pools, supervisors, and maintenance actors over shared fragment state, with
/// last-writer-wins merge, TTLs, and tombstones.
/// A database node: per-fragment supervision subtrees plus the peer mesh
/// that replicates writes between nodes. Supports static sharding with
/// one-hop routing.
/// Application listener for remote SDKs, independent of the peer mesh.
/// Bounded SQL query coordination over fragment views.
/// Pluggable network transport for the peer mesh. The default is plain
/// TCP; implement `Network` for TLS or other transports.
/// Protobuf wire protocol (generated via [prost])
/// Pluggable durable storage for a node's local copy. The default crate ships
/// no storage backend; its Node still uses a volatile actor cache. Enable
/// `rocksdb` for the offered durable backend or the independent `memory`
/// feature for the no-op store test double. Storage traits and the fragment
/// namespace wrapper are always available for caller-supplied stores.
/// Sharding: deterministic key → fragment mapping.
/// Compatibility reexports of the supervisor and maintenance actors in [`actor`].
/// Phase 5: async sender/receiver replication (per-fragment, per-peer
/// senders with batching, acks, and reconciliation).
/// Phase 8: dynamic placement controller — runtime fragment lifecycle,
/// chunked bootstrap, and controller-sequenced migration.
// Shared protobuf framing limits and encoding helpers. Node and replication
// consume this module as part of the v3 paginated anti-entropy protocol.
pub
pub