All Projects → meltwater → quitsies

meltwater / quitsies

Licence: MIT license
A persisted drop-in replacement for Memcached, respecting the rules of quitsies.

Programming Languages

C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to quitsies

Ardb
A redis protocol compatible nosql, it support multiple storage engines as backend like Google's LevelDB, Facebook's RocksDB, OpenLDAP's LMDB, PerconaFT, WiredTiger, ForestDB.
Stars: ✭ 1,707 (+10568.75%)
Mutual labels:  rocksdb, nosql, key-value
Fastonosql
FastoNoSQL is a crossplatform Redis, Memcached, SSDB, LevelDB, RocksDB, UnQLite, LMDB, ForestDB, Pika, Dynomite, KeyDB GUI management tool.
Stars: ✭ 1,001 (+6156.25%)
Mutual labels:  rocksdb, memcached
Pika
Pika is a nosql compatible with redis, it is developed by Qihoo's DBA and infrastructure team
Stars: ✭ 4,439 (+27643.75%)
Mutual labels:  rocksdb, nosql
Tikv
Distributed transactional key-value database, originally created to complement TiDB
Stars: ✭ 10,403 (+64918.75%)
Mutual labels:  rocksdb, key-value
toplingdb
ToplingDB is a cloud native LSM Key-Value Store with searchable compression algo and distributed compaction
Stars: ✭ 631 (+3843.75%)
Mutual labels:  rocksdb, nosql
raft-rocks
A simple database based on raft and rocksdb
Stars: ✭ 38 (+137.5%)
Mutual labels:  rocksdb, key-value
Tidis
Distributed transactional NoSQL database, Redis protocol compatible using tikv as backend
Stars: ✭ 1,182 (+7287.5%)
Mutual labels:  rocksdb, nosql
Dotnetguide
🦸【C#/.NET/.NET Core学习、工作、面试指南】概述:C#/.NET/.NET Core基础知识,学习资料、文章、书籍,社区组织,工具和常见的面试题总结。以及面试时需要注意的事项和优秀简历编写技巧,希望能和大家一起成长进步👊。【让现在的自己不再迷漫✨】
Stars: ✭ 308 (+1825%)
Mutual labels:  memcached, nosql
Tendis
Tendis is a high-performance distributed storage system fully compatible with the Redis protocol.
Stars: ✭ 2,295 (+14243.75%)
Mutual labels:  rocksdb, nosql
Vasto
A distributed key-value store. On Disk. Able to grow or shrink without service interruption.
Stars: ✭ 206 (+1187.5%)
Mutual labels:  rocksdb, key-value
docs
Source code of the ArangoDB online documentation
Stars: ✭ 18 (+12.5%)
Mutual labels:  nosql, key-value
pika
Pika is a nosql compatible with redis, it is developed by Qihoo's DBA and infrastructure team
Stars: ✭ 4,719 (+29393.75%)
Mutual labels:  rocksdb, nosql
Ansible Role Redis
Ansible Role - Redis
Stars: ✭ 176 (+1000%)
Mutual labels:  memcached, key-value
database-engine
LSM-Tree Key-Value Store based on RocksDB
Stars: ✭ 47 (+193.75%)
Mutual labels:  rocksdb, key-value
Cucache
Fast PUT/GET/DELETE in-memory key-value store for lookaside caching
Stars: ✭ 63 (+293.75%)
Mutual labels:  memcached, key-value
Zanredisdb
Yet another distributed kvstore support redis data and index. moved to: https://github.com/youzan/ZanRedisDB
Stars: ✭ 64 (+300%)
Mutual labels:  rocksdb, key-value
b52
b52 is a fast experimental Key/value database. With support for the memcache protocol.
Stars: ✭ 20 (+25%)
Mutual labels:  memcached, key-value
Gokv
Simple key-value store abstraction and implementations for Go (Redis, Consul, etcd, bbolt, BadgerDB, LevelDB, Memcached, DynamoDB, S3, PostgreSQL, MongoDB, CockroachDB and many more)
Stars: ✭ 314 (+1862.5%)
Mutual labels:  memcached, key-value
beryldb
BerylDB is a fully modular data structure data manager that can be used to store data as key-value entries. The server allows channel subscription and is optimized to be used as a cache repository. Supported structures include lists, sets, multimaps, and keys.
Stars: ✭ 201 (+1156.25%)
Mutual labels:  rocksdb, key-value
DataTanker
Embedded persistent key-value store for .NET. Pure C# code.
Stars: ✭ 53 (+231.25%)
Mutual labels:  nosql, key-value

Quitsies

Quitsies

"Quitsies": allows any opponent to stop the game without consequence. Players can either have "quitsies" (able to quit) or "no quitsies". - Wikipedia

A NoSQL key/value datastore that persists data to the disk using RocksDB. Quitsies aims to deliver high read and write performance in a service that can be quit (and restarted) without consequence.

Quitsies is accessible via a REST API and a subset of the memcached API.

To run:

quitsies [OPTIONS]...

To set a key with HTTP:

curl http://<address>:<http_port>/quitsies/key/<key> -d "<data>"

To get a key with HTTP:

curl http://<address>:<http_port>/quitsies/key/<key>

To set a key over TCP:

echo -e "set <key> 0 0 <data_length>\r\n<data>\r\n" | nc <address> <tcp_port>

To get a key over TCP:

echo -e "get <key>\r\n" | nc <address> <tcp_port>

TTL

Quitsies cannot set TTLs per data item, but can set a global TTL for all data. This works by suffixing all data with a timestamp of when they were last set. When you run quitsies you can use the --db_ttl flag to set a TTL, but be warned that this global value will apply retroactively to existing data.

TTLs are applied at compaction time.

Memcached API

Quitsies implements a subset of the memcached API in order to be compatible with existing libraries. However, since quitsies works differently to memcached under the bonnet there are some unimplemented commands and unused parameters that are worth understanding if you intend to use it.

Currently supported commands and their caveats:

Storage commands: set, add

Storage commands expect the same format from clients as the memcached API:

<command name> <key> <flags> <exptime> <bytes> [noreply]\r\n

However, the <flags> and <exptime> parameters are ignored for now. The cas check and set operation is also not implemented within quitsies.

Retrieval commands: get, gets

These commands are supported and should have parity with memcached.

Deletion command: delete

This command is supported and should have parity with memcached.

Tuning Performance

Quitsies has numerous input flags for tuning performance. The most prolific option is --db_write_mode, which optimises quitsies for writing at the cost of more expensive reads, this option is useful for quickly running a backfill.

Snapshots and Restoration

A running quitsies service can save snapshots into <db_path>_backup. You can trigger a snapshot with the rest API:

curl http://<address>:<http_port>/quitsies/backup_create -X POST

You can list snapshots with:

curl http://<address>:<http_port>/quitsies/backup_info

And you can purge all but the latest snapshot with:

curl http://<address>:<http_port>/quitsies/backup_clean -X POST

Restoring

To restore the latest snapshot in <db_path>_backup to <db_path> you can run quitsies with the --db_restore_backup flag. This will take the latest snapshot and use it to replace <db_path> entirely, so do not restore if there is live data that isn't backed up.

Build Docker

docker build . -t meltwater/quitsies:latest

Development

Build and test with bazel:

bazel test ...
bazel build quitsies

Or, pull the deps manually:

And use the makefile:

make build
make test
make install
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].