TIL

Vitess — MySQL 수평 샤딩

아키텍처

핵심 개념

Keyspace

Shard / key range / keyspace_id

VSchema & Vindex

{
  "sharded": true,
  "vindexes": { "hash": { "type": "hash" } },
  "tables": {
    "user": { "column_vindexes": [{ "column": "user_id", "name": "hash" }] }
  }
}

Sequences

쿼리 라우팅

온라인 리샤딩

장점과 트레이드오프

참고