Tarantool
activeby VK · since 2008
In-memory database and Lua application server in one process, with an optional disk engine.
Overview
Tarantool combines an in-memory storage engine (memtx), a disk-based LSM engine (vinyl) and a LuaJIT application server, so business logic runs inside the database next to the data. It offers ACID transactions with MVCC, secondary and spatial indexes, an SQL dialect, asynchronous and Raft-based synchronous replication, and sharding through the official vshard module. Built at Mail.ru and now developed by VK, it is popular in Russian fintech, telecom and gaming for caches that must also be the system of record. Outside that ecosystem the community and English-language resources are thinner.
Strengths & trade-offs
Strengths
- +Microsecond in-memory reads and writes with full ACID transactions
- +Lua stored procedures run inside the database, removing network hops
- +Two engines: RAM-resident memtx and disk-based vinyl in one server
- +Synchronous replication with Raft-based automatic failover
- +Write-ahead log and snapshots give durability for in-memory data
Trade-offs
- −Smaller global community; much material is in Russian
- −Sharding requires vshard and application-level awareness
- −Lua-centric development model is unfamiliar to many teams
- −memtx datasets are limited by RAM
Great for
- +Low-latency transactional caches that are also the source of truth
- +Session and user-profile storage for high-traffic sites
- +Queues and real-time counters
- +Fintech and telecom billing hot paths
Think twice for
- −Analytics over large datasets
- −Teams wanting a pure SQL relational database
- −Datasets far larger than RAM on the memtx engine
Capabilities
Native or official first-party support · 10 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- Addon
- Multi-region
- Read replicas
- Transactions
- Full ACID
- Consistency
- Strong, Eventual
- Schema
- Flexible
- Architecture
- In memory, Primary replica, Multi primary, Client server
- Query languages
- Lua, SQL
Sharding via the official vshard module; memtx datasets must fit in RAM per shard.
Deployment
Ecosystem
Alternatives to Tarantool
The in-memory data structure server that became the default cache, now with search, JSON and vectors built in.
tarantool vs redis →Flash-optimized distributed key-value and document database for predictable sub-millisecond latency at scale.
tarantool vs aerospike →A distributed, memory-first SQL database and compute grid; Ignite 3 rebuilt it around Raft and Calcite.
tarantool vs apache-ignite →A Java in-memory data grid and stream processor that embeds in your app or runs as a cluster.
tarantool vs hazelcast →The Linux Foundation's BSD-licensed fork of Redis, now the default engine on AWS and Google Cloud.
tarantool vs valkey →Shared-nothing, auto-sharded in-memory MySQL engine built for telecom-grade availability.
tarantool vs mysql-ndb-cluster →Tarantool FAQ
What is Tarantool?
Tarantool is a key-value database by VK, first released in 2008. Tarantool combines an in-memory storage engine (memtx), a disk-based LSM engine (vinyl) and a LuaJIT application server, so business logic runs inside the database next to the data. It offers ACID transactions with MVCC, secondary and spatial indexes, an SQL dialect, asynchronous and Raft-based synchronous replication, and sharding through the official vshard module. Built at Mail.ru and now developed by VK, it is popular in Russian fintech, telecom and gaming for caches that must also be the system of record. Outside that ecosystem the community and English-language resources are thinner.
Is Tarantool open source?
Yes. Tarantool is open source. License: BSD 2-Clause License.
Does Tarantool support ACID transactions?
Yes. Tarantool supports full ACID transactions, with strong, eventual consistency.
Does Tarantool scale horizontally?
Tarantool scales horizontally through an official extension, proxy or edition rather than in the core engine. It is comfortable at medium scale (≤ 10 TB). It supports cross-region read replicas.
How can I run Tarantool?
You can self-host it.
What is Tarantool best for?
Tarantool is a strong fit for low-latency transactional caches that are also the source of truth; session and user-profile storage for high-traffic sites; and queues and real-time counters. Think twice for analytics over large datasets.
What are the best alternatives to Tarantool?
Common alternatives to Tarantool include Redis, Aerospike, Apache Ignite, Hazelcast and Valkey. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is Tarantool?
Tarantool ranks #140 of 844 databases on the WhichDB Score (21.2/100), and #17 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.




