SSDB

SSDB is key-value(zset, hash, list) storage server, with Google LevelDB as storage engine, its goal is to replace Redis when encounter large sum of data that won’t fits the server’s memory.

https://github.com/ideawu/ssdb
SSDB Docs: http://ssdb.io/docs/

SSDB’s main features:

  • Uses Google LevelDB as storage engine
  • Master-slave replication, recover from break point after network failure
  • Online backup through network
  • Very suitable for storing collection data
  • Uses small RAM

PHP API

<?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

PHP API Docs: http://ssdb.io/docs/php/

SSDB vs Redis

SSDB vs Redis

Views: 23259

50 Responses to "SSDB"

  • Hi, excellent work! I was looking for something easier to wrap a java class to work with Basic4Java (http://www.b4x.com) would I be able to use this as a cache server with cache expiry? Reply
  • Hi guys,

    Ssdb is now available as add-on for Heroku users. It’s currently in alpha stage.
    According to Heroku requirements, it needs to be tested by 10 alpha users.
    If you want to be one of those alpha users, leave your email on ssdbhub.com or just drop me a note to support@ssdbhub.com
    Alpha users will get a lifetime add-on plan of 200MB for free. To get account on Heroku is also free ;) Reply
  • Hi,

    This project is very interesting and there is a even ssdb-rocks. (https://github.com/ideawu/ssdb-rocks).

    The ssdb-rocks is bit old. Are there plans to provide support for latest version of rocksdb? Reply
  • Very interesting!
    But, i wonder. Whats the impact on the server?
    Are there any specifications for example:
    100.000 1Mb keys will use 800Mb memory, 1Gb disk space, 80ms to lookup a key.
    etc…

    I don’t care about the disks pace. But I do care about the memory usage.
    Perhaps i’ll test it out sometime! Reply
    @Cagli: edit the ssdb.conf file, specify smaller cache_size and write_buffer_size, ssdb-server will use less memory. Reply
  • Hi!

    I want to use SSDB with CentOS 7 but it seems that it is not recommended: http://ssdb.io/docs/config.html

    May I know the details? Can I use it after removing the limit on the maximum number of processes available to a single user (/etc/security/limits.d/90-nproc.conf) ? Reply
  • Hi, UI Download( http://www.uidownload.com ) use SSDB as the main cache to store vectors, icons, psds, and it works well, you can list my logo on your site: http://www.uidownload.com/public/css/logo.png Reply
  • Hi
    I want to use SSDB but I don’t speak read/write chinese. Most of the companies using it seem to be chinese? I am concerned that this will make it difficult to find answers because most of the discourse is in a language that I don’t understand.

    Is there a big english community around ssdb that I havent found yet? Reply
    @Joe: Hi, it is ok to discuss in English on GitHub issues https://github.com/ideawu/ssdb/issues Don’t worry, most programmers and ssdb users in China know English well. Reply
  • Hi,
    For KV engine, I am looking for an enhanced levelDB lib that supports set and hash, but I do not need those fancy stuff like socket / server / master-slave etc. A pure lib like levelDB is more than enough for my scenario. Is it possible for me to use SSDB in such manner? (or with affordable changes). please advise, thank you. Reply
    @James: Yes, ssdb project is separeated into modules(db, network, util, etc), download the project and check it out yourself. Reply

« [1][2][3][4] » 1/4

Leave a Comment