ssdb introduction


SSDB is a high-performance NoSQL database developed in C/C++ language. It supports KV, list, map(hash), zset(sorted set), qlist(queue) and other data structures, and is used to replace Or work with Redis to store billion-level list data.

SSDB is stable, used in production environments, and has been widely used by many Internet companies, such as Qihoo 360 and TOPGAME.


Features

  • Replace Redis database, 100 times the capacity of Redis
  • LevelDB network support, developed using C/C++
  • Redis API compatible, supports Redis client
  • Suitable for storing collection data, such as kv, list, hashtable, zset,hset,qlist...
  • Client API supported Languages ​​include: C++, PHP, Python, Java, Go
  • Persistent queue service
  • Master-slave replication, load balancing


PHP api usage example

<?php
require_once('SSDB.php');
$ssdb = new SimpleSSDB('127.0.0.1', 8888);
$resp = $ssdb->set('key', '123');
$resp = $ssdb->get('key');
echo $resp; // output: 123



Quick installation

wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zipunzip master
cd ssdb-master
make


optional, install ssdb in /usr/local/ssdb

sudo make install

Startup

# start master
./ssdb-server ssdb.conf
#or start as daemon./ssdb-server -d ssdb.conf



##Performance comparison

Performance data uses ssdb-bench(SSDB) and redis-benchmark(Redis) to obtain.
201604092226208390.png
License Agreement


SSDB adopts the New BSD License, a very loose and flexible agreement.