Cloud · head to head
Heroku vs TiDB

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
- Heroku is a cloud platform as a service.
- TiDB has a free plan, then $250/mo; Heroku starts at $5/mo.
- Only Heroku lists git-based deployment; only TiDB lists MySQL wire compatibility.
- Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.
How do Heroku and TiDB differ?
Heroku and TiDB differ on starting price ($5/month against Free), pricing model (Subscription against Freemium) and free tier (No against Yes). Only the attributes on which Heroku and TiDB actually diverge.
Which features does each one have?
They share no listed features; 20 appear only for Heroku and 10 only for TiDB. 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 Heroku
- Git-based deployment
- Buildpacks
- Dynos (containers)
- Add-ons marketplace
- Postgres database
- Environment variables
- Logging
- API
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
What is each one used for?
Heroku is most often brought in for application hosting. The jobs each tool is most often brought in to do.
Heroku
- Application hostingnot TiDB
- Database as a servicenot TiDB
- CI/CD pipelinesnot TiDB
- API deploymentnot TiDB
TiDB
- A MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layernot Heroku
- Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipelinenot Heroku
- Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotionnot Heroku
- Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toilnot Heroku
Where do Heroku and TiDB fall short?
Heroku's most cited limit: there is no free dyno tier; the cheapest Eco dyno is $5 per month. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Heroku
- There is no free dyno tier; the cheapest Eco dyno is $5 per month
- Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
- Free SSL and 10 process types start at the Basic dyno at $7 per month
- Private and Shield dyno types require a Private Space, which is billed on top of the dynos
- Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
- Dyno prices are per dyno per month, so an app with several process types multiplies the bill
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
How much do Heroku and TiDB cost?
Heroku starts at $5/mo; TiDB has a free plan, with paid plans from $250/mo. Plan by plan below, from each vendor's own pricing page.
Heroku
$5/month- Eco Dyno$5/mo
- 0.5 GB RAM
- Git/Docker deploy
- Custom domains
- Basic Dyno$7/mo
- 0.5 GB RAM
- Always-on
- Free SSL
- Standard-1X Dyno$25/mo
- 0.5 GB RAM
- Horizontal scaling
- App metrics
- Standard-2X Dyno$50/mo
- 1 GB RAM
- Horizontal scaling
- App metrics
TiDB
Free- ServerlessFree
- 5GB storage
- 50M request units
- Free forever tier
- Dedicated$250/mo
- Dedicated resources
- SLA guarantees
- Enterprise support
Which should you pick?
Choose Heroku if
- You need git-based deployment.
- You work on Web, API, Workers.
- You also want buildpacks.
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.
Questions people ask
- Is Heroku or TiDB better?
- It depends on the job. Heroku fits application hosting; TiDB fits a MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer. Heroku starts at $5/month and TiDB at Free.
- Which is cheaper, Heroku or TiDB?
- TiDB has a free tier; the other does not. Paid plans start at $5/month for Heroku and Free for TiDB.
- Does Heroku or TiDB run on more platforms?
- Heroku runs on Web, API, Workers. TiDB runs on Web, AWS, Azure, Self-managed.
- Can I use TiDB for free?
- Yes. TiDB has a free tier, so you can try it without paying. Heroku starts at $5/month.
- What is Heroku best used for?
- Heroku is most often used for application hosting, database as a service, ci/cd pipelines, api deployment. Of those, application hosting and database as a service are not what TiDB is typically brought in for.
- What can Heroku do that TiDB cannot?
- Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace. TiDB covers MySQL wire compatibility, Horizontal write scaling, Distributed ACID transactions, TiFlash columnar replica.
Answered from the vendors’ own pages
Heroku: How much does Heroku cost?
Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.
SourceTiDB: 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.
Heroku: What is the cheapest always-on Heroku plan?
The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.
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.
Heroku: How is Heroku Postgres priced?
Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.
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.
TiDB: 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.
TiDB: 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.
Related pages
Other head to heads
- Heroku vs Render
- Heroku vs Porter
- Heroku vs Coolify
- Heroku vs Railway
- Heroku vs Qovery
- Heroku vs Fly.io
- Heroku vs Dokku
- Heroku vs Upsun
- Heroku vs DigitalOcean
- Heroku vs AWS (Amazon Web Services)
- Heroku vs Koyeb
- Heroku vs Google Cloud Run
- Heroku vs Puppet
- Heroku vs Buildah
- Heroku vs Contabo
- Heroku vs Crossplane
- Heroku vs Crusoe Cloud
- Heroku vs Infracost
- Heroku vs SingleStore
- Heroku vs CockroachDB
- Heroku vs YugabyteDB
- Heroku vs Amazon Aurora
- Heroku vs PlanetScale
- Heroku vs MySQL
- Heroku vs Vitess
- Heroku vs Google Cloud Spanner
- Heroku vs Elasticsearch
- Heroku vs SAP HANA
- Heroku vs DuckDB
- Heroku vs Aerospike
- Heroku vs Apache HBase
- Heroku vs Amazon DocumentDB
- Heroku vs BigQuery
- Heroku vs Apache Ignite
- Heroku vs Amazon ElastiCache
- Heroku vs Amazon Neptune
- TiDB vs Render
- TiDB vs Porter
- TiDB vs Coolify
- TiDB vs Railway
- TiDB vs Qovery
- TiDB vs Fly.io
- TiDB vs Dokku
- TiDB vs Upsun
- TiDB vs DigitalOcean
- TiDB vs AWS (Amazon Web Services)
- TiDB vs Koyeb
- TiDB vs Google Cloud Run
- TiDB vs Puppet
- TiDB vs Buildah
- TiDB vs Contabo
- TiDB vs Crossplane
- TiDB vs Crusoe Cloud
- TiDB vs Infracost
- 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 Aerospike
- TiDB vs Apache HBase
- TiDB vs Amazon DocumentDB
- TiDB vs BigQuery
- TiDB vs Apache Ignite
- TiDB vs Amazon ElastiCache
- TiDB vs Amazon Neptune

