Databases · head to head
TiDB vs Upstash

TiDB
Databases
Apache 2.0 distributed SQL database with MySQL wire compatibility and a separate columnar replica for analytical queries.
- From
- Free
- Free plan
- Yes
The short version
- Free plans on both; paid from $250/mo and $10/mo.
- Only TiDB lists MySQL wire compatibility; only Upstash lists serverless Redis.
- Where Upstash falls short: HTTP-based REST API only, no TCP connections means higher latency than self-hosted or connection-pooled Redis.
How do TiDB and Upstash differ?
TiDB and Upstash differ on platforms and year founded (2015 against 2020). Only the attributes on which TiDB and Upstash actually diverge.
Identical on both: starting price (Free), free tier (Yes), category (Databases).
Not yet recorded: pricing model for Upstash.
Which features does each one have?
They share no listed features; 10 appear only for TiDB and 20 only for Upstash. 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 TiDB
- MySQL wire compatibility
- Horizontal write scaling
- Distributed ACID transactions
- TiFlash columnar replica
- Automatic rebalancing
- Raft replication
- Apache 2.0 licence
- Online schema change
Only in Upstash
- Serverless Redis
- Serverless Kafka
- QStash
- Global Replication
- REST API
- Edge Functions Support
- Rate Limiting
- Caching
What is each one used for?
Upstash is most often brought in for caching. The jobs each tool is most often brought in to do.
TiDB
- A MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layernot Upstash
- Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipelinenot Upstash
- Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotionnot Upstash
- Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toilnot Upstash
Upstash
- Cachingnot TiDB
- Session storagenot TiDB
- Real-time messagingnot TiDB
- Rate limitingnot TiDB
- Serverless backendsnot TiDB
Where do TiDB and Upstash fall short?
Upstash's most cited limit: HTTP-based REST API only, no TCP connections means higher latency than self-hosted or connection-pooled Redis. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
TiDB
- A production cluster needs several placement driver, storage and SQL nodes before it is fault tolerant, so the minimum viable footprint is far larger than a MySQL server and TiDB is never the economical choice for a small database
- Every transaction takes a timestamp from the placement driver and crosses the network to storage nodes, so simple point queries are slower than on single-node MySQL and latency-sensitive paths need to be measured, not assumed
- MySQL compatibility is at the wire and dialect level but not complete; stored procedures, triggers and events are not supported, so an application that pushed logic into the database cannot simply be repointed
- The columnar replica is an extra full copy of the data on its own nodes, so hybrid analytics roughly doubles storage and adds hardware that must be sized and paid for separately
- Operating it well requires cluster-specific expertise in TiUP or the Kubernetes operator, region hot spots, and rebalancing behaviour, so the licence is free but the running cost includes an engineer who understands distributed storage
Upstash
- HTTP-based REST API only, no TCP connections means higher latency than self-hosted or connection-pooled Redis
- Rate limiting occurs when traffic exceeds configured budget cap or request limits
- Kafka service discontinued in March 2025, requiring migration to Upstash Workflow or alternatives
- Limited Redis feature support compared to self-hosted Redis or Redis Cloud
- High-request-volume workloads can accumulate significant costs due to per-request pricing model
How much do TiDB and Upstash cost?
TiDB has a free plan, with paid plans from $250/mo; Upstash has a free plan, with paid plans from $10/mo. Plan by plan below, from each vendor's own pricing page.
TiDB
Free- ServerlessFree
- 5GB storage
- 50M request units
- Free forever tier
- Dedicated$250/mo
- Dedicated resources
- SLA guarantees
- Enterprise support
Upstash
Free- FreeFree
- 256 MB data
- 500K commands per month
- 10 GB bandwidth
- Pay-as-you-go$0.2
- Per-request billing
- Storage at $0.25/GB
- Unlimited commands
- Fixed Plan$10/mo
- 250 MB Redis
- Predictable pricing
- Global replication available at higher tiers
Which should you pick?
Choose TiDB if
- You need mysql wire compatibility.
- You want to start without paying.
- You work on Web, AWS, Azure, Self-managed.
- You also want horizontal write scaling.
Choose Upstash if
- You need serverless redis.
- You want to start without paying.
- You work on API, Vercel Edge, Web, AWS Lambda.
- You also want serverless kafka.
Questions people ask
- Is TiDB or Upstash better?
- It depends on the job. TiDB fits a MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer; Upstash fits caching. TiDB starts at Free and Upstash at Free.
- Which is cheaper, TiDB or Upstash?
- TiDB starts at Free and Upstash at Free.
- Does TiDB or Upstash run on more platforms?
- TiDB runs on Web, AWS, Azure, Self-managed. Upstash runs on API, Vercel Edge, Web, AWS Lambda.
- Can I use TiDB for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is TiDB best used for?
- TiDB is most often used for a mysql workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer, reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an etl pipeline, multi-region deployments needing a single logical database with automatic failover rather than manual primary promotion, migrating off a sharded mysql estate where the sharding logic in the application has become the main source of bugs and operational toil. Of those, a mysql workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer and reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an etl pipeline are not what Upstash is typically brought in for.
- What can TiDB do that Upstash cannot?
- TiDB covers MySQL wire compatibility, Horizontal write scaling, Distributed ACID transactions, TiFlash columnar replica. Upstash covers Serverless Redis, Serverless Kafka, QStash, Global Replication.
Answered from the vendors’ own pages
TiDB: Is TiDB a drop-in replacement for MySQL?
At the protocol and dialect level it is close, and most applications connect unchanged. Stored procedures, triggers and events are not supported, and latency characteristics differ, so it needs testing rather than assumption.
Upstash: Does Upstash have a free tier?
Yes. The free tier provides 256 MB of data and 500,000 commands per month with 10 GB of bandwidth in a single region, no credit card required.
SourceTiDB: What licence is it under?
Apache 2.0, for both TiDB and the underlying TiKV storage engine. TiKV is a graduated CNCF project, which is a meaningful governance signal in a market where several competitors moved to source-available licences.
Upstash: How does Upstash work with edge platforms like Vercel and Cloudflare Workers?
Upstash uses a REST API instead of TCP connections, enabling it to work from Vercel Edge, Cloudflare Workers, and AWS Lambda without persistent connections or connection pooling.
SourceTiDB: Do I need TiFlash?
Only for analytical queries. It is an optional columnar replica; without it TiDB is a distributed transactional database. With it you get analytics on live data at the cost of an additional full copy.
Upstash: What programming languages are supported?
Upstash provides native SDKs for Python, Node.js, Go, and Rust. Java, C#, and PHP developers can use the REST API or community libraries.
SourceTiDB: Is the managed cloud the same software?
TiDB Cloud runs the same engine, with the control plane, scaling and operational tooling provided as a service. The entry tier is metered differently from a dedicated cluster, so the cost model rather than the engine is what changes.
Upstash: Is Upstash Kafka still available?
No. Upstash Kafka was deprecated on September 11, 2024 and fully discontinued on March 11, 2025. Upstash Workflow is now recommended for durable serverless messaging and task queuing.
SourceTiDB: When is TiDB the wrong choice?
When the database is small enough for one server, when latency on single-row lookups is the primary constraint, or when the application depends on MySQL stored procedures and triggers.
Upstash: How is Upstash pricing structured?
Upstash uses per-request pricing at $0.20 per 100K commands for Redis, $0.25/GB for storage, and $0.40 per 100K requests for Vector database. Idle applications cost nothing.
SourceUpstash: Can Upstash be used with AWS Lambda?
Yes. Upstash works with AWS Lambda via its REST API, eliminating the need for connection pooling and making it ideal for stateless serverless functions.
SourceRelated pages
Other head to heads
- TiDB vs SingleStore
- TiDB vs CockroachDB
- TiDB vs YugabyteDB
- TiDB vs Amazon Aurora
- TiDB vs PlanetScale
- TiDB vs MySQL
- TiDB vs Vitess
- TiDB vs Google Cloud Spanner
- TiDB vs Elasticsearch
- TiDB vs SAP HANA
- TiDB vs DuckDB
- TiDB vs Apache HBase
- TiDB vs DBeaver
- TiDB vs etcd
- TiDB vs Fivetran HVR
- TiDB vs Amazon ElastiCache
- TiDB vs BigQuery
- TiDB vs Amazon Neptune
- TiDB vs Neon
- TiDB vs Dragonfly
- TiDB vs FaunaDB
- TiDB vs Redis
- TiDB vs Redpanda
- TiDB vs RisingWave
- TiDB vs MotherDuck
- TiDB vs Instaclustr
- TiDB vs Nile
- TiDB vs DynamoDB
- TiDB vs Valkey
- TiDB vs Apache Flink
- TiDB vs Apache Spark
- TiDB vs MariaDB
- TiDB vs Materialize
- TiDB vs Memcached
- Upstash vs SingleStore
- Upstash vs CockroachDB
- Upstash vs YugabyteDB
- Upstash vs Amazon Aurora
- Upstash vs PlanetScale
- Upstash vs MySQL
- Upstash vs Vitess
- Upstash vs Google Cloud Spanner
- Upstash vs Elasticsearch
- Upstash vs SAP HANA
- Upstash vs DuckDB
- Upstash vs Apache HBase
- Upstash vs DBeaver
- Upstash vs etcd
- Upstash vs Fivetran HVR
- Upstash vs Amazon ElastiCache
- Upstash vs BigQuery
- Upstash vs Amazon Neptune
- Upstash vs Neon
- Upstash vs Dragonfly
- Upstash vs FaunaDB
- Upstash vs Redis
- Upstash vs Redpanda
- Upstash vs RisingWave
- Upstash vs MotherDuck
- Upstash vs Instaclustr
- Upstash vs Nile
- Upstash vs DynamoDB
- Upstash vs Valkey
- Upstash vs Apache Flink
- Upstash vs Apache Spark
- Upstash vs MariaDB
- Upstash vs Materialize
- Upstash vs Memcached

