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
Can we look forward for further features like –
1. getUnion(zset1, zset2, ..)
2. getIntersection((zset1, zset2, ..)
3. getUnionCount(zset1, zset2, ..) // approx using HLL
4. getIntersectionCount(zset1, zset2, ..) // approx using HLL
Is there any roadmap you have in mind ?
Regards
Ashay Reply
Thanks and great library! Reply
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
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
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
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