
ALT This diagram illustrates database sharding strategies. It features colorful, annotated sections explaining vertical and horizontal sharding with examples. Vertical sharding is shown as splitting a database by columns, while horizontal sharding is divided into rows. Three horizontal sharding methods are depicted: range-based, directory-based, and key-based. For range-based sharding, age groups are used to demonstrate data division into uneven shards. Directory-based sharding includes a map of IDs to shards. Key-based sharding uses a hash function to distribute IDs across shards evenly. The visuals include icons of databases, arrows indicating data flow, and tables representing sharded data structures. The overall theme is educational, with a playful design and a clear layout to convey complex information simply.





































