Description
Database Sharding is a type of database partitioning that separates very large databases into smaller, faster, more easily managed parts called data shards.
Where to use
- Horizontal scaling of databases. \n
- Managing massive datasets.
Real World Example
A Global User Database is sharded by region: Users in US-East go to Shard A, Users in EU-West go to Shard B.
Code Example
class ShardedDatabasePattern:
def __init__(self):
pass
def execute(self):
print('Executing Sharded Database Pattern')
