Skip to content

Commit 5628636

Browse files
committed
routing: add module docstring
1 parent 256ce58 commit 5628636

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scylla/src/routing/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
//! This module holds entities whose goal is to enable routing requests optimally,
2+
//! that is, choosing a target node and a shard such that it is a replica for
3+
//! given token.
4+
//!
5+
//! This includes:
6+
//! - token representation,
7+
//! - shard representation and shard computing logic,
8+
//! - partitioners, which compute token based on a partition key,
9+
//! - replica locator, which finds replicas (node + shard) for a given token.
10+
//!
11+
112
pub mod locator;
213
pub mod partitioner;
314
mod sharding;

0 commit comments

Comments
 (0)