Vitess is a MySQL-compatible, cloud-native database system originally built at YouTube to scale MySQL. PlanetScale runs Vitess as a managed service. Core capabilities:
| Keyspace | Logical database mapping to one or more shards. Analogous to a MySQL schema. | | Shard | A horizontal partition of a keyspace, each backed by a separate MySQL instance. | | VSchema | Configuration defining how tables map to shards, vindex (sharding) keys, and routing rules. |
| Vindex | Sharding function mapping column values to shards (hash, unicodeloosexxhash, lookup). | | VTGate | Stateless proxy that plans and routes queries to the correct shard(s). | | Online DDL | Non-blocking schema migrations. On PlanetScale, use deploy requests for production changes. |
Лучшие практики Vitess, оптимизация запросов и устранение неполадок подключения для баз данных PlanetScale Vitess. Загружайте при работе с базами данных Vitess, сегментированием, конфигурацией VSchema, управлением пространством ключей или проблемами масштабирования MySQL. Источник: planetscale/database-skills.