APIs · head to head
Basis Theory vs TiDB

Basis Theory
APIs
Developer tokenisation platform that holds card and sensitive data inside a PCI Level 1 environment you do not operate
- From
- $995/month
- 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 has a free plan, then $250/mo; Basis Theory starts at $995/mo.
- Only Basis Theory lists tokenisation API; only TiDB lists MySQL wire compatibility.
How do Basis Theory and TiDB differ?
Basis Theory and TiDB differ on starting price ($995/month against Free), pricing model and free tier (No against Yes). Only the attributes on which Basis Theory and TiDB actually diverge.
| Attribute | Basis Theory | TiDB |
|---|---|---|
| Starting price | $995/month | Free |
| Pricing model | Per month by token volume | Freemium |
| Free tier | No | Yes |
| Platforms | Web, iOS, Android, Linux | Web, AWS, Azure, Self-managed |
| Category | APIs | Databases |
Not yet recorded: founded for Basis Theory.
Which features does each one have?
They share no listed features; 8 appear only for Basis Theory 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 Basis Theory
- Tokenisation API
- Hosted elements
- Outbound proxy
- PCI attestation of compliance
- Processor portability
- Reactors
- Access controls and audit
- PII and PHI options
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?
The jobs each tool is most often brought in to do.
Basis Theory
- A payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that followsnot TiDB
- A merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirernot TiDB
- A fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security reviewnot TiDB
- A team that needs to send stored card data to a third party for a one-off integration without that data traversing its own serversnot TiDB
TiDB
- A MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layernot Basis Theory
- Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipelinenot Basis Theory
- Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotionnot Basis Theory
- Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toilnot Basis Theory
Where do Basis Theory and TiDB fall short?
Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Basis Theory
- The Starter plan is 995 US dollars a month before any volume, which is a real floor for an early stage company and puts the product out of reach of teams tokenising a few thousand records
- Starter is limited to the US region, so a company with European data residency requirements is pushed into a quoted Scale or Enterprise agreement immediately
- Log retention on Starter is 24 hours, which is well below what most security teams expect for a system holding cardholder data and forces an upgrade for reasons unrelated to volume
- Migrating away means moving card data out of the vault, which requires processor and assessor involvement and is slow, so the portability argument that attracts buyers cuts against them at exit
- An attestation of compliance covers the vendor environment, not your assessment; your assessor still decides what is in scope, and buyers occasionally discover their integration pattern pulled systems back into scope anyway
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 Basis Theory and TiDB cost?
Basis Theory starts at $995/mo; TiDB has a free plan, with paid plans from $250/mo. Plan by plan below, from each vendor's own pricing page.
Basis Theory
$995/month- Starter$995/mo
- 20,000 tokens included
- Production PCI Level 1 environment
- US region only
- ScaleOn request
- Quoted
- Higher token volumes
- Additional regions
- EnterpriseOn request
- Quoted
- Additional compliance options for PII and PHI
- Responses for 95 percent of PCI SAQ D
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 Basis Theory if
- You need tokenisation api.
- You work on Web, iOS, Android, Linux.
- You also want hosted elements.
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 Basis Theory or TiDB better?
- It depends on the job. Basis Theory fits a payments company that wants card on file without bringing its own infrastructure into PCI scope and paying for the assessment that follows; TiDB fits a MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer. Basis Theory starts at $995/month and TiDB at Free.
- Which is cheaper, Basis Theory or TiDB?
- TiDB has a free tier; the other does not. Paid plans start at $995/month for Basis Theory and Free for TiDB.
- Does Basis Theory or TiDB run on more platforms?
- Basis Theory runs on Web, iOS, Android, Linux. 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. Basis Theory starts at $995/month.
- What is Basis Theory best used for?
- Basis Theory is most often used for a payments company that wants card on file without bringing its own infrastructure into pci scope and paying for the assessment that follows, a merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirer, a fintech collecting bank account and identity data that needs it isolated from its application database before an enterprise security review, a team that needs to send stored card data to a third party for a one-off integration without that data traversing its own servers. Of those, a payments company that wants card on file without bringing its own infrastructure into pci scope and paying for the assessment that follows and a merchant locked into a processor by that processor vault that wants to hold its own tokens and route to more than one acquirer are not what TiDB is typically brought in for.
- What can Basis Theory do that TiDB cannot?
- Basis Theory covers Tokenisation API, Hosted elements, Outbound proxy, PCI attestation of compliance. TiDB covers MySQL wire compatibility, Horizontal write scaling, Distributed ACID transactions, TiFlash columnar replica.
Answered from the vendors’ own pages
Basis Theory: Does this make us PCI compliant?
It removes cardholder data from your systems and gives you an AOC plus documented responses for most of a SAQ D. Your assessor still determines your scope, and a careless integration can pull systems back in.
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.
Basis Theory: What does it cost to start?
995 US dollars a month on Starter, including 20,000 tokens, a production PCI Level 1 environment and US hosting. Higher tiers are quoted.
TiDB: 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.
Basis Theory: Can we switch payment processors without re-collecting cards?
Yes, that is the main non-compliance reason to buy it. You hold the tokens and detokenise into whichever processor you route to.
TiDB: 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.
Basis Theory: Is data stored outside the United States?
Not on Starter, which is US only. Other regions require a Scale or Enterprise agreement.
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
More on Basis Theory
Other head to heads
- Basis Theory vs Skyflow
- Basis Theory vs Increase
- Basis Theory vs Lithic
- Basis Theory vs Volt
- Basis Theory vs Swan
- Basis Theory vs Trustly
- Basis Theory vs Moov
- Basis Theory vs Vodeno
- Basis Theory vs TrueLayer
- Basis Theory vs Paymentology
- Basis Theory vs Akoya
- Basis Theory vs Sila
- Basis Theory vs Yapily
- Basis Theory vs 10x Banking
- Basis Theory vs Appwrite
- Basis Theory vs Bruno
- Basis Theory vs Marqeta
- Basis Theory vs Temenos Transact
- Basis Theory vs SingleStore
- Basis Theory vs CockroachDB
- Basis Theory vs YugabyteDB
- Basis Theory vs Amazon Aurora
- Basis Theory vs PlanetScale
- Basis Theory vs MySQL
- Basis Theory vs Vitess
- Basis Theory vs Google Cloud Spanner
- Basis Theory vs Elasticsearch
- Basis Theory vs SAP HANA
- Basis Theory vs DuckDB
- Basis Theory vs Aerospike
- Basis Theory vs Apache HBase
- Basis Theory vs Amazon DocumentDB
- Basis Theory vs BigQuery
- Basis Theory vs Apache Ignite
- Basis Theory vs Amazon ElastiCache
- Basis Theory vs Amazon Neptune
- TiDB vs Skyflow
- TiDB vs Increase
- TiDB vs Lithic
- TiDB vs Volt
- TiDB vs Swan
- TiDB vs Trustly
- TiDB vs Moov
- TiDB vs Vodeno
- TiDB vs TrueLayer
- TiDB vs Paymentology
- TiDB vs Akoya
- TiDB vs Sila
- TiDB vs Yapily
- TiDB vs 10x Banking
- TiDB vs Appwrite
- TiDB vs Bruno
- TiDB vs Marqeta
- TiDB vs Temenos Transact
- 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
