"Sharding"
- MySQL Vitess Sharding:VTGate / VTTablet / VReplication / VSchema 四件套協作
Vitess 不只是 MySQL sharding proxy、是 4 個 component 協作的完整 sharding 系統 — VTGate(query routing layer)、VTTablet(per-MySQL agent)、VReplication(跨 shard 資料移動)、VSchema(sharding metadata)。本文走 4 件套各自責任、keyspace / shard / tablet 架構、shard key 設計(Vindex)、配置 step-by-step、5 production 踩雷(cross-shard transaction / VStream lag / Vindex 不均勻 / resharding 切流 / VReplication 卡住)、跟自管 sharding 跟 PlanetScale 的對比
- PostgreSQL Citus Distributed:用 extension 把 PG 變成 sharded cluster
Citus 是 PG extension、把單機 PG 變成 *coordinator + worker* sharded cluster、保留 PG SQL + 加 distributed table + reference table + columnar storage。本文走 Citus 架構(coordinator / worker / distribution column)、3 種 table type(distributed / reference / local)、配置 step-by-step、5 production 踩雷(distribution column 選錯 / cross-shard transaction / reference table 過大 / colocate 不對齊 / worker failover)、跟 MySQL Vitess sharding sibling 對比
- MongoDB Shard Key Selection:hashed vs ranged、單 cluster 切 shard vs 多 cluster 切 blast radius
MongoDB sharded cluster shard key 選型(hashed / ranged / compound)、單 cluster 分 shard vs 多 cluster 分 blast radius 對照、跟 DynamoDB / Cosmos DB partition key 可逆性的跨 vendor 紀律