BASE

Vitess

Vitess

Database / data tool · Free

A database clustering system for MySQL: it provides backend routing and sharding when one database is insufficient.

Also known as: vitessio/vitess; vitess

Resource illustration: Vitess

Open resource ↗

What you can use for free

Code and local use under Apache-2.0.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Prepare a MySQL backend for routing and sharding
  • Test queries through Vitess and the selected shard routing behavior

Example workflow

A possible workflow; this is not a report of hands-on testing.

Prepare a MySQL backend for routing and sharding.

Before you start

  • A schema, test dataset, and queries.
  • A supported database or runtime.

Steps

  1. Define the keyspace, tables, and proposed data distribution scheme.
  2. Test queries through Vitess and the selected shard routing behavior.
  3. Check schema changes, indexes, and data recovery.

Check your result

  • Query results match the reference data.
  • Check access permissions, backup recovery, and load before production use.

Choosing Vitess

Prepare a MySQL backend for routing and sharding

Choose this when

  • Prepare a MySQL backend for routing and sharding
  • Test queries through Vitess and the selected shard routing behavior

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
  • The default MULTI mode for cross-shard transactions uses best-effort commit: partial commits are possible. TwoPC provides write atomicity, but the documentation separately limits isolation guarantees. auto_increment does not ensure uniqueness across shards; sequences are available.

Frequently asked questions

What can you use for free in Vitess?

Code and local use under Apache-2.0.

What additional costs might arise with Vitess?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Vitess?

Apache-2.0 for the code; third-party components retain their own terms.

How do you get started with Vitess?

Define the keyspace, tables, and proposed data distribution scheme. Test queries through Vitess and the selected shard routing behavior. Check schema changes, indexes, and data recovery.

Which MySQL limitations matter when sharding with Vitess?

Vitess uses the MySQL protocol but its distributed scheme has compatibility limits: CALL is permitted in an unsharded keyspace or with an explicit shard, while temporary tables require no sharding and a reserved connection.

License

Apache-2.0 for the code; third-party components retain their own terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • Vitess
  • database
  • Development

Sources

Other resources