📖 Distributed Systems Core

Sharding Strategies

Strategy Pros Cons
Hash-based Even distribution Range queries hard
Range-based Range queries easy Hotspots possible
Directory-based Flexible Lookup overhead

Consistent Hashing

Replication

Leader-Follower

Leaderless

Consensus (Raft High-Level)