**sharding **is a method for distributing data across multiple machines.
- It is a horizontal scalling.
Key Based Sharding
Algorithmically sharded databases use a hash function to locate data. This allows us given a specific shard key to find the correct physical shard to request the data from.
Data is only distributed by the hash function. It doesn’t take the size of the payload or space usage into account. Benefits of hashing allows a more even distribution when a suitable partition key isn’t available and location can be calculated on the fly if you have the proper partition key.

https://architecturenotes.co/database-sharding-explained/
