{"id":13490323,"url":"https://github.com/ideawu/ssdb","last_synced_at":"2025-05-14T04:06:52.953Z","repository":{"id":6326656,"uuid":"7561862","full_name":"ideawu/ssdb","owner":"ideawu","description":"SSDB - A fast NoSQL database, an alternative to Redis","archived":false,"fork":false,"pushed_at":"2022-08-20T12:26:30.000Z","size":4288,"stargazers_count":8208,"open_issues_count":399,"forks_count":1400,"subscribers_count":541,"default_branch":"master","last_synced_at":"2025-04-10T20:55:44.785Z","etag":null,"topics":["leveldb","nosql-databases","redis","rocksdb","ssdb"],"latest_commit_sha":null,"homepage":"http://ssdb.io/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ideawu.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-11T15:19:07.000Z","updated_at":"2025-04-10T17:20:24.000Z","dependencies_parsed_at":"2022-07-12T15:03:05.254Z","dependency_job_id":null,"html_url":"https://github.com/ideawu/ssdb","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideawu%2Fssdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideawu%2Fssdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideawu%2Fssdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideawu%2Fssdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ideawu","download_url":"https://codeload.github.com/ideawu/ssdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254067684,"owners_count":22009235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leveldb","nosql-databases","redis","rocksdb","ssdb"],"created_at":"2024-07-31T19:00:44.844Z","updated_at":"2025-05-14T04:06:52.228Z","avatar_url":"https://github.com/ideawu.png","language":"C++","readme":"# SSDB - A Redis compatible NoSQL database stored on disk\n\n[![Author](https://img.shields.io/badge/author-@ideawu-blue.svg?style=flat)](http://www.ideawu.net/) [![Platform](https://img.shields.io/badge/platform-Linux,%20BSD,%20OS%20X,%20Windows-green.svg?style=flat)](https://github.com/ideawu/ssdb) [![NoSQL](https://img.shields.io/badge/db-NoSQL-pink.svg?tyle=flat)](https://github.com/ideawu/ssdb) [![License](https://img.shields.io/badge/license-New%20BSD-yellow.svg?style=flat)](LICENSE)\n\n\nSSDB is a high performace key-value(key-string, key-zset, key-hashmap) NoSQL database, __an alternative to Redis__.\n\nSSDB is stable, production-ready and is widely used by many Internet companies including QIHU 360.\n\n## Features\n\n* LevelDB client-server support, written in C/C++\n* Designed to store collection data\n* Persistent key-value, key-zset, key-map('hashmap'), key-list storage\n* Redis clients are supported\n* Client API supports including C++, PHP, Python, Cpy, Java, nodejs, Ruby, Go([see all](http://ssdb.io/docs/clients.html))\n* Persistent queue service\n* **Replication(master-slave), load balance**\n* GUI administration tool([phpssdbadmin](https://github.com/ssdb/phpssdbadmin))\n* Built-in CLI nagios self-checks\n\n## PHP client API example\n\n```php\n\u003c?php\nrequire_once('SSDB.php');\n$ssdb = new SimpleSSDB('127.0.0.1', 8888);\n$resp = $ssdb-\u003eset('key', '123');\n$resp = $ssdb-\u003eget('key');\necho $resp; // output: 123\n```\n\n[More...](http://ssdb.io/docs/php/)\n\n\n## Who's using SSDB?\n\n[SSDB users...](http://ssdb.io/docs/users.html)\n\n\n## Documentation\n\n* [View online](http://ssdb.io/docs/)\n* [Contribute to SSDB documentation project](https://github.com/ideawu/ssdb-docs)\n\n## Compile and Install\n\n```sh\n$ wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip\n$ unzip master\n$ cd ssdb-master\n$ make\n$ #optional, install ssdb in /usr/local/ssdb\n$ sudo make install\n\n# start master\n$ ./ssdb-server ssdb.conf\n\n# or start as daemon\n$ ./ssdb-server -d ssdb.conf\n\n# ssdb command line\n$ ./tools/ssdb-cli -p 8888\n\n# stop ssdb-server\n$ ./ssdb-server ssdb.conf -s stop\n # for older version\n$ kill `cat ./var/ssdb.pid`\n```\n\nSee [Compile and Install wiki](http://ssdb.io/docs/install.html)\n\n## Performance\n\n### Typical performance\n\nTotal 1000 requests.\n\n```\nwriteseq  :    0.546 ms/op      178.7 MB/s\nwriterand :    0.519 ms/op      188.1 MB/s\nreadseq   :    0.304 ms/op      321.6 MB/s\nreadrand  :    0.310 ms/op      315.0 MB/s\n```\n\n### SSDB vs Redis\n\n![Benchmark vs Redis](http://ssdb.io/ssdb-vs-redis.png?github)\n\n[View full SSDB vs Redis benchmark charts...](http://ssdb.io/)\n\n### Concurrency benchmark\n\n```\n========== set ==========\nqps: 44251, time: 0.226 s\n========== get ==========\nqps: 55541, time: 0.180 s\n========== del ==========\nqps: 46080, time: 0.217 s\n========== hset ==========\nqps: 42338, time: 0.236 s\n========== hget ==========\nqps: 55601, time: 0.180 s\n========== hdel ==========\nqps: 46529, time: 0.215 s\n========== zset ==========\nqps: 37381, time: 0.268 s\n========== zget ==========\nqps: 41455, time: 0.241 s\n========== zdel ==========\nqps: 38792, time: 0.258 s\n```\n\nRun on a 2013 MacBook Pro 13 inch with Retina display.\n\n## Architecture\n\n![ssdb architecture](http://ssdb.io/ssdb.png)\n\n## Windows executable\n\nDownload ssdb-server.exe from here: https://github.com/ideawu/ssdb-bin\n\n\n## SSDB library for iOS\n\n\tmake ios\n\t# ls ios/\n\tinclude/ libleveldb-ios.a libsnappy-ios.a libssdb-ios.a libutil-ios.a\n\nDrag the static libraies files into your iOS project. Then add `ios/include` to your iOS project's __Header Search Paths__, which is set in __Build Settings__.\n\n## Links\n\n* [Author's homepage](http://www.ideawu.com/blog/)\n* [Cpy Scripting Language](https://github.com/ideawu/cpy)\n* [Google LevelDB](https://code.google.com/p/leveldb/)\n* [Lua ssdb client driver for the ngx_lua](https://github.com/LazyZhu/lua-resty-ssdb)\n* [Yet another ssdb client for Python](https://github.com/ifduyue/pyssdb)\n* [SSDB 中文文档](http://www.ideawu.net/blog/category/ssdb)\n\n## Changes made to LevelDB\n\nSee [Changes-Made-to-LevelDB wiki](https://github.com/ideawu/ssdb/wiki/Changes-Made-to-LevelDB)\n\n## LICENSE\n\nSSDB is licensed under [New BSD License](http://opensource.org/licenses/BSD-3-Clause), a very flexible license to use.\n\n## Authors\n\n@ideawu(wuzuyang1@gmail.com)\n\n## Thanks\n\n* 刘建辉, liujianhui@gongchang.com\n* wendal(陈镇铖), wendal1985@gmail.com, http://wendal.net \n","funding_links":[],"categories":["C / CPP","C++","Most Stars Project on Github","Key-Value"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideawu%2Fssdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fideawu%2Fssdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideawu%2Fssdb/lists"}