Softwr

Developer Tools · head to head

Restate vs TiDB

Restate logo

Restate

Developer Tools

Durable execution engine in Rust with a free tier and low-latency workflows

From
Free
Free plan
Yes
TiDB logo

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 $300/mo and $250/mo.
  • Only Restate lists durable execution; only TiDB lists MySQL wire compatibility.

How do Restate and TiDB differ?

Restate and TiDB differ on pricing model, platforms and category (Developer Tools against Databases). Only the attributes on which Restate and TiDB actually diverge.

Attributes where Restate and TiDB differ
AttributeRestateTiDB
Pricing modelPer month by durable action countFreemium
PlatformsLinux, macOS, WebWeb, AWS, Azure, Self-managed
CategoryDeveloper ToolsDatabases

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Restate.

Which features does each one have?

They share no listed features; 6 appear only for Restate 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 Restate

  • Durable execution
  • Virtual objects
  • Single binary runtime
  • Multi-language SDKs
  • Workflows and sagas
  • Restate Cloud

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.

Restate

  • Payment or order flows where a crash between two external API calls must not double-charge or lose the ordernot TiDB
  • AI agent loops that call tools over minutes or hours and must survive a deployment mid-runnot TiDB
  • Replacing hand-rolled retry, idempotency key and outbox code across a set of microservicesnot TiDB
  • A small team that wants durable workflows without operating a Temporal cluster and its databasenot TiDB

TiDB

  • A MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layernot Restate
  • Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipelinenot Restate
  • Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotionnot Restate
  • Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toilnot Restate

Where do Restate and TiDB fall short?

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Restate

  • The runtime is under a Business Source Licence rather than an open source licence, so building a competing managed offering on it is prohibited and some procurement functions will reject it on licence grounds alone
  • Restate Cloud jumps from a free fifty thousand actions straight to 300 US dollars a month for twenty million, so a workload sitting at a few hundred thousand actions pays enterprise-shaped money for hobby-shaped volume
  • It is a young project against Temporal’s established base, so hiring engineers who already know it is unrealistic and the answer to most questions is in the docs rather than on Stack Overflow
  • The programming model requires structuring code around durable handlers and virtual objects, which is a genuine rewrite for existing services rather than a library you add
  • The single-binary simplicity that makes small deployments cheap also means fewer operational knobs at very large scale than a system designed as separable components

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 Restate and TiDB cost?

Restate has a free plan, with paid plans from $300/mo; TiDB has a free plan, with paid plans from $250/mo. Plan by plan below, from each vendor's own pricing page.

Restate

Free
  • FreeFree
    • Fifty thousand durable actions per month
    • No credit card required
    • Community support
  • Starter$300/mo
    • Twenty million actions per month
    • Two hundred actions per second, bursting to one thousand
    • Twenty GB storage
  • Pro$1,000/mo
    • Fifty million actions per month
    • Five hundred actions per second, bursting to two thousand
    • Fifty GB storage
  • EnterpriseOn request
    • Negotiated volume
    • Twenty-four seven P0 support
    • 99.99 per cent SLA

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 Restate if

  • You need durable execution.
  • You want to start without paying.
  • You work on Linux, macOS, Web.
  • You also want virtual objects.

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 Restate or TiDB better?
It depends on the job. Restate fits payment or order flows where a crash between two external API calls must not double-charge or lose the order; TiDB fits a MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer. Restate starts at Free and TiDB at Free.
Which is cheaper, Restate or TiDB?
Restate starts at Free and TiDB at Free.
Does Restate or TiDB run on more platforms?
Restate runs on Linux, macOS, Web. TiDB runs on Web, AWS, Azure, Self-managed.
Can I use Restate for free?
Both have a free tier, so you can try either at no cost before committing.
What is Restate best used for?
Restate is most often used for payment or order flows where a crash between two external api calls must not double-charge or lose the order, ai agent loops that call tools over minutes or hours and must survive a deployment mid-run, replacing hand-rolled retry, idempotency key and outbox code across a set of microservices, a small team that wants durable workflows without operating a temporal cluster and its database. Of those, payment or order flows where a crash between two external api calls must not double-charge or lose the order and ai agent loops that call tools over minutes or hours and must survive a deployment mid-run are not what TiDB is typically brought in for.
What can Restate do that TiDB cannot?
Restate covers Durable execution, Virtual objects, Single binary runtime, Multi-language SDKs. TiDB covers MySQL wire compatibility, Horizontal write scaling, Distributed ACID transactions, TiFlash columnar replica.

Answered from the vendors’ own pages

Restate: Is Restate open source?

The SDKs are MIT. The runtime is under a Business Source Licence, which permits self-hosting but not offering it as a competing service.

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.

Restate: How does it compare with Temporal?

Same problem, different shape: one Rust binary with embedded storage instead of a server plus database plus workers, and lower per-step latency.

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.

Restate: Is there a free tier?

Yes, fifty thousand durable actions a month on Restate Cloud with no card required.

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.

Restate: Which languages are supported?

TypeScript, Java, Kotlin, Go, Python and Rust.

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.

Share

Related pages

Other head to heads