Nuno Dias
Nuno Dias

Reputation: 3948

Will REDIS give me fast In-Memory access to recent rows and fallback to a persistent store for long term entries?

I'm looking into REDIS, and considering a scenario where I have a cluster with a master and one or multiple slaves.

Could I have a partially In-Memory database with REDIS? In-Memory for the most recent entries of a given table and stored in disk for the older entries?

Here's some requirements and what I'm expecting to deal with initialy

Characteristics

Writes

Reads

Will REDIS fit the bill? And if not, what solutions might fit this scenario? Is partial In-Memory even a thing?

Thank you.

Upvotes: 1

Views: 473

Answers (1)

Didier Spezia
Didier Spezia

Reputation: 73236

No, Redis is a pure in-memory data store. You could use Redis for caching, and complement it with a persistent store (and handle the logic of this mechanism in the application), but Redis alone will not fit the bill.

I would recommend you have a look at Couchbase or Aerospike to get the best latencies from primary key accesses, if this aspect is important to you.

Otherwise, considering the throughput, a good number of persistent SQL and NoSQL stores can probably take care of your workload. For instance, MongoDB, MySQL or its derivatives, can be configured to achieve your goals with an adapted database model.

Upvotes: 2

Related Questions