facebook 的用户表分为多少个分片?

问题描述 投票:0回答:0

"Shard Manager manages tens of millions of shards hosted on hundreds of thousands of servers across hundreds of applications in production."

https://engineering.fb.com/2020/08/24/product-engineering/scaling-services-with-shard-manager/

如果上述情况成立,那么假设 facebook 有 30 亿用户,并且该表被划分为 1000 万个分片,如文档所示,那么每个表/分片仅包含 300 行/用户?

因此,每当向数据库发出需要返回任意用户列表的查询时,可能有成百上千台服务器并行工作来获取此列表?

我的理解正确吗?

database mongodb facebook nosql sharding
© www.soinside.com 2019 - 2024. All rights reserved.