ActorDB

ActorDB is a distributed relational SQL database, which is strongly consistent, massively concurrent, and horizontally scalable. It supports no single point of failure and uses no global read or write locks. To achieve the features provided, ActorDB uses Raft distributed consensus algorithm on top of an existing battle-tested and stable SQL database engine. ActorDB splits the dataset into small independent chunks, which is inspired by the "Actor Model". The database is a good fit for microservices, saas solutions, and (mobile) app backends.

History

Started with the project Emit Cloud, which is a file synchronization application like Dropbox, the developers at Biokoda found problems in achieving no single point of failure and horizontal scalability. To solve the problem, developers at Biokoda extended SQLite's WAL format to implement Raft. In the later versions, LMDB is used as the storage engine for ActorDB. ActorDB was first launched in 2014. The latest official stable release is 0.10.27 (Jan 2019).

Checkpoints

Not Supported

ActorDB does not require checkpoints from WAL to the main database file.

Concurrency Control

Multi-version Concurrency Control (MVCC) Not Supported

Although ActorDB is concurrent on the database level, it is not on each actor. The storage engine LMDB employs MVCC.

Data Model

Relational

ActorDB is a distributed relational database. But it also has the scalability of a KV store by introducing a KV data type, which is a SQL table that is partitioned across all servers.

Foreign Keys

Supported

Foreign keys are enabled by default in ActorDB.

Indexes

B+Tree

ActorDB uses SQLite as the query engine, which uses B-Tree for its default indexing data structure.

Isolation Levels

Serializable

Essentially, every actor is an SQLite database, where all transactions are serializable.

Joins

Nested Loop Join

Each actor runs SQLite as the query engine, which uses Nested Loop Join.

Logging

Physical Logging

ActorDB uses Raft protocol to replicate actors. The protocol is extended on SQLite WAL module and requires a write log to operate.

Query Execution

Tuple-at-a-Time Model

ActorDB uses SQLite as its query engine, which uses Volcano-style query processing.

Query Interface

Custom API SQL

ActorDB doesn't need any special drivers, as developers can use MySQL driver of the language of choice. ActorDB is connectable over the MySQL protocol. It is also connectable and recommended to use the thrift interface, which supports more popular languages.

Storage Architecture

In-Memory

ActorDB uses LMDB as its storage engine. Each actor is stored within an LMDB file. LMDB uses mmap to achieve in memory storage.

Storage Model

Custom

As the storage engine being used, LMDB uses a memory-map to store the database with copy-on-write semantics, hence no specific storage model.

Storage Organization

Copy-on-Write / Shadow Paging

System Architecture

Shared-Nothing

ActorDB has clusters that have 1, 3, or 5 nodes, each of which contains about 4 shards.

Views

Not Supported

ActorDB currently doesn't support MapReduce.

People Also Viewed

ActorDB Logo
Website

http://www.actordb.com/

Source Code

https://github.com/biokoda/actordb

Tech Docs

http://www.actordb.com/docs-about.html

Developer

Biokoda

Country of Origin

SI

Start Year

2014

Project Type

Commercial, Open Source

Written in

Erlang

Supported languages

Erlang

Embeds / Uses

LMDB, SQLite

Compatible With

MySQL

Operating Systems

Linux, OS X, Windows

Licenses

Mozilla Public License

People Also Viewed