Sharding Plus Replication — Shards Spread Over Nodes

Sharding Plus Replication — Shards Spread Over Nodes An architecture diagram generated by Archify. Application · reads and writes records · Architecture component Application reads and writes records Node 1 · leader of shard 1 · Each record belongs to exactly one shard · each shard is replicated on several nodes · one node holds many shards · follower of shard 4 Node 1 leader of shard 1 follower of shard 4 Node 2 · leader of shard 2 · Each record belongs to exactly one shard · each shard is replicated on several nodes · one node holds many shards · follower of shard 1 Node 2 leader of shard 2 follower of shard 1 Node 3 · leader of shard 3 · Each record belongs to exactly one shard · each shard is replicated on several nodes · one node holds many shards · follower of shard 4 Node 3 leader of shard 3 follower of shard 4 Node 4 · leader of shard 4 · Each record belongs to exactly one shard · each shard is replicated on several nodes · one node holds many shards · follower of shard 1 Node 4 leader of shard 4 follower of shard 1 write to the shard leader read from any replica shard 1: leader copy to follower shard 4: leader copy to follower this node also follows shard 4 this node also follows shard 3 Each record belongs to exactly one shard · each shard is replicated on several nodes · one node holds many shards Legend Database External