Cloud · head to head
Amazon S3 vs TiDB

Amazon S3
Cloud
Amazon Web Services' pay-as-you-go object storage service
- From
- On request
- Free plan
- No

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
- TiDB starts at $250/mo; Amazon S3 prices on request.
- Only Amazon S3 lists object storage in buckets; only TiDB lists MySQL wire compatibility.
- Where Amazon S3 falls short: billing depends on storage class, requests and transfer, so total cost is hard to predict.
How do Amazon S3 and TiDB differ?
Amazon S3 and TiDB differ on starting price (On request against Free), pricing model (Usage-based against Freemium) and free tier (No against Yes). Only the attributes on which Amazon S3 and TiDB actually diverge.
Not yet recorded: founded for Amazon S3.
Which features does each one have?
They share no listed features; 9 appear only for Amazon S3 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 Amazon S3
- Object storage in buckets
- Multiple storage classes including Glacier
- S3 Intelligent-Tiering
- Versioning
- Replication
- Encryption by default
- Static website hosting
- Time-limited authenticated URLs
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?
Amazon S3 is most often brought in for data lake storage for analytics. The jobs each tool is most often brought in to do.
Amazon S3
- Data lake storage for analyticsnot TiDB
- Application and mobile app file storagenot TiDB
- Long-term archives in Glacier classesnot TiDB
- Static website hostingnot TiDB
TiDB
- A MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layernot Amazon S3
- Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipelinenot Amazon S3
- Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotionnot Amazon S3
- Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toilnot Amazon S3
Where do Amazon S3 and TiDB fall short?
Amazon S3's most cited limit: billing depends on storage class, requests and transfer, so total cost is hard to predict. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Amazon S3
- Billing depends on storage class, requests and transfer, so total cost is hard to predict
- Outbound internet data transfer is charged beyond the first 100 GB per month
- Objects larger than 5 GB need multipart upload because single uploads are capped at 5 GB
- Versioning is disabled by default and must be switched on per bucket
- Available only on AWS; moving data elsewhere means egress and re-integration work
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 Amazon S3 and TiDB cost?
TiDB has a free plan, with paid plans from $250/mo. Plan by plan below, from each vendor's own pricing page.
Amazon S3
On requestNo published plan breakdown. See the Amazon S3 review.
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 Amazon S3 if
- You need object storage in buckets.
- You also want multiple storage classes including glacier.
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 Amazon S3 or TiDB better?
- It depends on the job. Amazon S3 fits data lake storage for analytics; TiDB fits a MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer. Amazon S3 starts at On request and TiDB at Free.
- Which is cheaper, Amazon S3 or TiDB?
- TiDB has a free tier; the other does not. Paid plans start at On request for Amazon S3 and Free for TiDB.
- Does Amazon S3 or TiDB run on more platforms?
- Amazon S3 runs on Web. 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. Amazon S3 starts at On request.
- What is Amazon S3 best used for?
- Amazon S3 is most often used for data lake storage for analytics, application and mobile app file storage, long-term archives in glacier classes, static website hosting. Of those, data lake storage for analytics and application and mobile app file storage are not what TiDB is typically brought in for.
- What can Amazon S3 do that TiDB cannot?
- Amazon S3 covers Object storage in buckets, Multiple storage classes including Glacier, S3 Intelligent-Tiering, Versioning. TiDB covers MySQL wire compatibility, Horizontal write scaling, Distributed ACID transactions, TiFlash columnar replica.
Answered from the vendors’ own pages
Amazon S3: What is Amazon S3?
Amazon S3 is an object storage service from AWS, described as built to retrieve any amount of data from anywhere. It is used for data lakes, cloud-native applications and mobile apps.
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.
Amazon S3: How is S3 priced?
AWS says the cost depends on object size, storage duration and storage class, with no minimum charge. Inbound transfer from the internet is free, as are transfers between buckets in the same Region, and the first 100 GB per month out to the internet is free.
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.
Amazon S3: What is the maximum object size in S3?
Objects can be up to 5 TB. A single upload operation is capped at 5 GB, so larger objects use the multipart upload API.
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.
Amazon S3: Is S3 versioning on by default?
No. Versioning is available but disabled by default. Default bucket-level encryption was added in November 2017.
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.
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
- Amazon S3 vs Google Cloud Platform
- Amazon S3 vs Microsoft Azure
- Amazon S3 vs Wasabi
- Amazon S3 vs Rook
- Amazon S3 vs Exoscale
- Amazon S3 vs Google Cloud Run
- Amazon S3 vs Confluent Cloud
- Amazon S3 vs Scaleway
- Amazon S3 vs Paperspace
- Amazon S3 vs CloudAMQP
- Amazon S3 vs Lium
- Amazon S3 vs Grafana Cloud
- Amazon S3 vs Rancher
- Amazon S3 vs OVHcloud
- Amazon S3 vs Northflank
- Amazon S3 vs Oracle Cloud
- Amazon S3 vs HAProxy
- Amazon S3 vs minikube
- Amazon S3 vs SingleStore
- Amazon S3 vs CockroachDB
- Amazon S3 vs YugabyteDB
- Amazon S3 vs Amazon Aurora
- Amazon S3 vs PlanetScale
- Amazon S3 vs MySQL
- Amazon S3 vs Vitess
- Amazon S3 vs Google Cloud Spanner
- Amazon S3 vs Elasticsearch
- Amazon S3 vs SAP HANA
- Amazon S3 vs DuckDB
- Amazon S3 vs Aerospike
- Amazon S3 vs Apache HBase
- Amazon S3 vs Amazon DocumentDB
- Amazon S3 vs BigQuery
- Amazon S3 vs Apache Ignite
- Amazon S3 vs Amazon ElastiCache
- Amazon S3 vs Amazon Neptune
- TiDB vs Google Cloud Platform
- TiDB vs Microsoft Azure
- TiDB vs Wasabi
- TiDB vs Rook
- TiDB vs Exoscale
- TiDB vs Google Cloud Run
- TiDB vs Confluent Cloud
- TiDB vs Scaleway
- TiDB vs Paperspace
- TiDB vs CloudAMQP
- TiDB vs Lium
- TiDB vs Grafana Cloud
- TiDB vs Rancher
- TiDB vs OVHcloud
- TiDB vs Northflank
- TiDB vs Oracle Cloud
- TiDB vs HAProxy
- TiDB vs minikube
- 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
