(计算机)分片:把一个大型数据库或数据集按规则切分为多个较小的部分(称为 shards),分布在不同服务器/节点上,以提升扩展性、并发能力与整体性能。(在不同语境中也可泛指“切分/分块”的做法。)
/ˈʃɑːr.dɪŋ/(英式常见)
/ˈʃɑr.dɪŋ/(美式常见)
We use sharding to store user data across multiple servers.
我们使用分片把用户数据存储在多台服务器上。
As the app grew, the team introduced sharding by customer region to reduce query latency and avoid a single database becoming a bottleneck.
随着应用规模增长,团队按客户所在区域实施分片,以降低查询延迟,并避免单一数据库成为性能瓶颈。
Sharding 来自 shard(“碎片、碎块”)+ -ing(表示动作/过程)。在计算机领域中,“shard”被借用为“数据碎片/分片”的比喻,用来形象说明把整体数据切成多块并分散存放的架构做法。