Figure: High-level architecture of Vitess, showing how stateless VTGate proxies route application queries to VTTablet servers (each managing a MySQL instance) and how a global topology service coordinates cluster state. Vitess control tools like vtctl/vtctld interact with the topology and tablets to manage the cluster.
VTGate is the query router and proxy layer in Vitess. It is a stateless server that clients connect to instead of connecting directly to MySQL. VTGate:
- Parses incoming SQL queries, plans how to satisfy them across shards, and dispatches them to the appropriate VTTablets.