Databases · head to head
Memcached vs Vitess
Memcached
Databases
Distributed memory object caching system
- From
- Free
- Free plan
- Yes

Vitess
Databases
Scalable database clustering system for horizontal scaling of MySQL
- From
- Free
- Free plan
- Yes
The short version
- Both are free.
- Only Memcached lists in-memory key-value cache; only Vitess lists connection Pooling.
- Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.
- Where Vitess falls short: VTGate scatter queries without sharding key incur significant performance penalties.
How do Memcached and Vitess differ?
Memcached and Vitess differ on platforms and year founded (2003 against 2010). Only the attributes on which Memcached and Vitess actually diverge.
Identical on both: starting price (Free), free tier (Yes), category (Databases).
Not yet recorded: pricing model for Vitess.
Which features does each one have?
They share no listed features; 4 appear only for Memcached and 15 only for Vitess. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Memcached
- In-memory key-value cache
- Multithreaded
- Client-side sharding
- Predictable memory use
Only in Vitess
- Horizontal Sharding
- Connection Pooling
- Query Routing
- Online Schema Changes
- Shard Management
- Replication Management
- Automated Failover
- MySQL
What is each one used for?
Memcached is most often brought in for caching expensive database query results to cut load; Vitess for transaction processing. The jobs each tool is most often brought in to do.
Memcached
- Caching expensive database query results to cut loadnot Vitess
- Session storage where losing sessions on restart is acceptablenot Vitess
- Fronting an API whose responses are costly and change slowlynot Vitess
Vitess
- Transaction processingnot Memcached
- Data storagenot Memcached
- Application backendnot Memcached
- Reportingnot Memcached
- Data analyticsnot Memcached
Where do Memcached and Vitess fall short?
Memcached's most cited limit: no persistence at all: restart a node and its cache is gone, which every design must assume. Vitess's: VTGate scatter queries without sharding key incur significant performance penalties. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Memcached
- No persistence at all: restart a node and its cache is gone, which every design must assume
- No replication or failover, so losing a node loses that share of the cache
- Only simple key-value, with none of the lists, sorted sets or streams Redis offers
- Values are capped at 1MB by default, which surprises teams caching large documents
Vitess
- VTGate scatter queries without sharding key incur significant performance penalties
- Foreign key constraints not enforced across shards, requiring application-level integrity handling
- Single primary per keyspace limits multi-region write capabilities
- Distributed transactions without proper sharding key routing suffer performance degradation
How much do Memcached and Vitess cost?
Memcached is free to use; Vitess is free to use. Plan by plan below, from each vendor's own pricing page.
Memcached
Free- MemcachedFree
- Full functionality
- Self-hosted
- No usage limits
Vitess
Free- Open source (Apache-2.0)Free
Which should you pick?
Choose Memcached if
- You need in-memory key-value cache.
- You want to start without paying.
- You work on Linux, macOS, Windows, Self-hosted.
- You also want multithreaded.
Choose Vitess if
- You need horizontal sharding.
- You want to start without paying.
- You work on Linux, macOS, Self-hosted.
- You also want connection pooling.
Questions people ask
- Is Memcached or Vitess better?
- It depends on the job. Memcached fits caching expensive database query results to cut load; Vitess fits transaction processing. Memcached starts at Free and Vitess at Free.
- Which is cheaper, Memcached or Vitess?
- Memcached starts at Free and Vitess at Free.
- Does Memcached or Vitess run on more platforms?
- Memcached runs on Linux, macOS, Windows, Self-hosted. Vitess runs on Linux, macOS, Self-hosted.
- Can I use Memcached for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Memcached best used for?
- Memcached is most often used for caching expensive database query results to cut load, session storage where losing sessions on restart is acceptable, fronting an api whose responses are costly and change slowly. Of those, caching expensive database query results to cut load and session storage where losing sessions on restart is acceptable are not what Vitess is typically brought in for.
- What can Memcached do that Vitess cannot?
- Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use. Vitess covers Horizontal Sharding, Connection Pooling, Query Routing, Online Schema Changes.
Answered from the vendors’ own pages
Memcached: Is Memcached free?
Yes, open source with no licence fee.
Vitess: Is Vitess free to use?
Yes. Vitess is completely free and open source under the Apache 2.0 license. It is a graduated CNCF project with no licensing costs or pricing tiers.
SourceMemcached: Memcached or Redis?
Memcached is a pure cache: simpler, multithreaded and very predictable. Redis adds persistence, replication and rich data structures, which is why it is the default choice unless you specifically want a cache and nothing more.
Vitess: What databases does Vitess support?
Vitess supports MySQL and MariaDB as backend databases. It acts as a middleware layer that adds sharding and orchestration capabilities on top of these databases.
SourceMemcached: Does Memcached persist data?
No. Everything is in memory and lost on restart, by design.
Vitess: Does Vitess require Kubernetes to run?
No. Vitess can run on Kubernetes using the Vitess Operator, but it can also be deployed on traditional infrastructure. Kubernetes integration is optional and provides additional automation benefits.
SourceVitess: How does Vitess handle cross-shard transactions?
Vitess supports distributed transactions across shards, but they require queries to be routed through the sharding key. Transactions without a proper sharding key can result in slower performance.
SourceVitess: Does Vitess enforce foreign key constraints?
Vitess does not enforce foreign key constraints across shards by default. Referential integrity must be managed at the application layer, though per-database support can be enabled with limitations.
SourceRelated pages
Other head to heads
- Memcached vs Valkey
- Memcached vs Readyset
- Memcached vs Amazon ElastiCache
- Memcached vs Redis
- Memcached vs Dragonfly
- Memcached vs PostgreSQL
- Memcached vs DuckDB
- Memcached vs Apache Pulsar
- Memcached vs NATS
- Memcached vs MySQL
- Memcached vs VictoriaMetrics
- Memcached vs Dgraph
- Memcached vs Google Cloud SQL
- Memcached vs MotherDuck
- Memcached vs Presto
- Memcached vs TIBCO Enterprise Message Service
- Memcached vs VerneMQ
- Memcached vs DynamoDB
- Memcached vs Amazon Aurora
- Memcached vs CockroachDB
- Memcached vs TiDB
- Memcached vs YugabyteDB
- Memcached vs SingleStore
- Memcached vs Microsoft Access
- Memcached vs ClickHouse
- Memcached vs RabbitMQ
- Memcached vs Xata
- Vitess vs Valkey
- Vitess vs Readyset
- Vitess vs Amazon ElastiCache
- Vitess vs Redis
- Vitess vs Dragonfly
- Vitess vs PostgreSQL
- Vitess vs DuckDB
- Vitess vs Apache Pulsar
- Vitess vs NATS
- Vitess vs MySQL
- Vitess vs VictoriaMetrics
- Vitess vs Dgraph
- Vitess vs Google Cloud SQL
- Vitess vs MotherDuck
- Vitess vs Presto
- Vitess vs TIBCO Enterprise Message Service
- Vitess vs VerneMQ
- Vitess vs DynamoDB
- Vitess vs Amazon Aurora
- Vitess vs CockroachDB
- Vitess vs TiDB
- Vitess vs YugabyteDB
- Vitess vs SingleStore
- Vitess vs Microsoft Access
- Vitess vs ClickHouse
- Vitess vs RabbitMQ
- Vitess vs Xata
