High-Throughput OLTP in Three Simple Steps
Migrating a TPC-B-style bank workload (accounts, tellers, branches, history) from a general-purpose SQL model to TigerBeetle yields roughly 100x throughput when three techniques are applied: modeling each transaction as linked debit/credit transfers with an aggregate account, relying on batching instead of client concurrency, and using monotonic time-based IDs. TigerBeetle clients allow one outstanding request and automatically batch operations (up to 8,189 per request) while waiting, so many goroutines sharing one thread-safe client reach about 454k transactions (909k transfers) per second, whereas adding more clients does not help. Random UUID transfer IDs force index lookups for idempotency checks, while ULID-like TBIDs make the check a cheap monotonicity comparison. A relational database with stored procedures reached about 7k TPS in the same comparison, a gap attributed to avoiding row-level locks, batched execution and parallel server I/O.
Related posts
- Rediscovering Transaction Processing From History and First Principles
TigerBeetle easyNoviceGeneral-purpose OLTP databases hit a hard throughput ceiling on debit/credit workloads because row locks are held across multiple network round-trips, and hot rows such as a few internal accounts serialize nearly every transaction. Jim Gray's 1985 DebitCredit benchmark anticipated this, defining transaction processing in terms of double-entry bookkeeping. TigerBeetle makes debit/credit a first-class primitive: 128-byte transfers are batched up to 8000 per 1 MiB request, amortizing round-trips and eliminating row locks. It also emphasizes safety through Protocol-Aware Recovery, static memory allocation, 6000+ assertions and deterministic simulation testing. The post doubles as the announcement of a $24M Series A.
- Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck
Turso mediumAdeptTurso 0.8 targets SQLite's single-writer bottleneck with BEGIN CONCURRENT, an MVCC mode where transactions start independently and commit in groups. At 1,000 TPS with Poisson arrivals, p99.9 latency is 2.4 ms at 32 connections versus 1.2 s for SQLite, whose lock-retry sleeps inflate tail latency. On disjoint-key inserts, Turso scales to about 9,500 TPS at 64 connections while SQLite stays near 1,370 TPS, though SQLite is faster with a single connection. The release also adds full window function and recursive CTE support, MVCC-compatible full-text search, and optimizer work including correlated subquery unnesting, hash joins and JSON EXPLAIN QUERY PLAN output.
- Batches in SQLite
Turso mediumAdeptBatching SQL statements into a single request cuts latency sharply for remote SQLite via libSQL/Turso, where every query is a network round trip. A test with the libSQL Rust SDK showed about 5.3s for looping through 10 queries versus 1.7s for one batch of 1000 inserts. Batches are atomic, either committing all changes or rolling back, and can sequence dependent statements without the write locks that make interactive transactions prone to SQLITE_BUSY errors under high latency. Batches are the recommended replacement for loops that issue many queries.
- Open-sourcing TAOBench: An end-to-end social network benchmark
Meta Engineering easyNoviceTAOBench is an open-source benchmark that reproduces Meta's social graph workload from TAO, a read-optimized, geo-distributed store serving over 10 billion requests per second on petabytes of data. A small set of parameters, including transaction size, key-to-shard mapping and operation-type frequencies, is enough to downscale production request patterns and model emergent application behavior, and the workloads are validated against production. Meta uses it to test new transaction use cases, lock contention, new APIs and high fan-out transactions. The release includes results for Cloud Spanner, CockroachDB, PlanetScale, TiDB and YugabyteDB, which show how the benchmark exposes performance tradeoffs.
- HTAP is Dead
Neon easyNovice
HTAP as a single-database architecture never reached product-market fit, even though systems like SingleStore and TiDB proved row and column storage could be combined. The reasons given: replacing an incumbent OLTP system is very hard, most transactional workloads fit on one large machine, the cloud favored shared-disk object storage over shared-nothing designs, and OLTP and OLAP belong to different teams. The HTAP need now lives in the composed data stack, where OLTP systems and stream processors act as the WAL, Iceberg serves as storage, Spark or Trino handle execution, and ClickHouse or Elastic act as indexes. The open problem has become making the lakehouse real-time, mainly through efficient CDC into the lake and keeping indexes in sync.