Introduction

Tarantool is a NoSQL database running inside a Lua program. It combines the network programming power of Node.JS with data persistency capabilities of Redis. It's open source, BSD licensed. The latest release is Tarantool 1.6.3, published on July 20, 2014.

Features

Example

#!/usr/bin/env tarantool

box.cfg{}
hosts = box.space.hosts
if not hosts then
    hosts = box.schema.create_space('hosts')
    hosts:create_index('primary', { parts = {1, 'STR'} })
end

local function handler(self)
    local host = self.req.peer.host
    local response = {
        host = host;
        counter = hosts:inc(host);
    }
    self:render({ json = response })
end

httpd = require('http.server')
server = httpd.new('127.0.0.1', 8080)
server:route({ path = '/' }, handler)
server:start()

Learn more