Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a disk-based redis-like database [closed]

I am currently using Redis for my app, and its features are really excellent for my application (lists, sets, sorted sets etc.).

My application relies heavily on sorted sets, lists, sets. And their related functions (push to a list, get list, union of sets etc. The only problem I am facing right now is that my data is large, and most of my data does not need to be in memory, and I want to store them on disk.

**I need an on-disk database with redis data structures **

I read about Cassandra but I am not sure if it supports sorted sets, sets, lists. Or at least if it does, I could not find methods to manipulate them the way Redis does.

Thanks.

like image 422
Pacemaker Avatar asked Mar 12 '13 13:03

Pacemaker


People also ask

Does Redis store data on disk?

Within Redis, there are two different ways of persisting data to disk. One is a method called snapshotting that takes the data as it exists at one moment in time and writes it to disk. The other method is called AOF, or append—only file, and it works by copying incoming write commands to disk as they happen.

Is NoSQL a Redis?

Redis is an open source, in-memory key-value data structure store, which can be used as a database, cache, or message broker. It's a NoSQL database.

How durable is Redis?

Redis is not usually deployed as a "durable" datastore (in the sense of the "D" in ACID.), even with journaling. Most use cases intentionally sacrifice a little durability in return for speed.

Is Redis good for large data?

This is strictly a matter of using the right tool for the job. Both an RDBMS and a NoSQL solution (such as Redis) can be used for storing big data sets - I have intimate acquaintance with Redis databases over 1TB for example.


2 Answers

https://github.com/yinqiwen/ardb another REDIS protocol replacement with LMDB, RocksDB and LevelDB disk-based backend

nice benchmarks

like image 132
Slach Avatar answered Sep 21 '22 22:09

Slach


There are numerous on-disk databases with Redis-like datastructures or even trying to be drop-in protocol-compatible replacements for Redis.

There are excellent recommendations in "Is there something like Redis DB, but not limited with RAM size?" - pity the community considers such questions to be off-topic.

In particular, SSDB is an actively-maintained Redis-like on-disk database (but not directly compatible), and Ardb is an actively-maintained drop-in replacement for Redis that stores the data on disk. Disclaimer: I have not used either of them (yet).

like image 22
Roman Starkov Avatar answered Sep 25 '22 22:09

Roman Starkov