talira

Tarantool

In-memory database with a built-in Lua application server

open coreBSD-2-Clauseself-hostablefree

Tarantool is an in-memory computing platform: a database and an application server in one process, with stored logic written in Lua and run by a LuaJIT-based interpreter. The database keeps data in memory with write-ahead-log persistence, or on disk in its own LSM-tree engine, uses MessagePack for data and its protocol, and has hash, tree, R-tree and bitset indexes, JSON path indexes, ANSI SQL, asynchronous master-master and synchronous Raft-based replication, and sharding. Its makers sell Tarantool Enterprise Edition, with tools for administration and deployment.

Problems it solves

  • keep hot data in RAM with persistence and run business logic next to it
  • an in-memory database faster than Redis that also supports SQL and transactions
  • shard a high-load key-value store across servers with automatic leader election

Features

  • In-memory engine with WAL persistence
  • LSM-tree disk engine for large data sets
  • Lua application server with LuaJIT
  • ANSI SQL
  • Asynchronous and synchronous (Raft) replication
  • Sharding with vshard
  • Persistent queues

Ways to run it

Tarantool

You run it, BSD-2-Clause

free1

You arrange

  • servers to run it on

Self-hosting docs

Tarantool Enterprise Edition

You run it, under a commercial licence

sold separately; price not published2

You arrange

  • servers to run it on

Self-hosting docs

Alternatives

The same job

These do what Tarantool does.

  1. Redis The preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine
  2. Apache Ignite Distributed database with in-memory speed: SQL, key-value, transactions and compute
  3. Dragonfly The world's most efficient in-memory data store
  4. Valkey An open source (BSD) high-performance key/value datastore
  5. KeyDB A multithreaded fork of Redis, no longer maintained

Compare Tarantool with the top 3