A
A
Alexey2020-05-18 20:42:17
Redis
Alexey, 2020-05-18 20:42:17

Should you trust Redis to keep your data safe?

Can Redis be trusted to store data as practically the primary storage? For example in Memcached or file cache, we usually check for the existence of data, and if it doesn't exist, pull it from a database like MySql and save it again. Can Redis guarantee data persistence and availability? Is it possible, for example, not to store data like categories in the main database, but always use Redis to store them?
Those. probably, the question is rather about what radishes can be useful for at all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
P747, 2020-05-18
@P747

I once asked a ± similar question Redis vs Elasticsearch vs Sphinx for data storage and searching?
There, in one of the solutions, they suggested the universal tool Manticore Search, although I haven’t tested it yet

R
Roman Mirilaczvili, 2020-05-22
@2ord

Can Redis guarantee data integrity and availability?
I view Redis as a snapshot-recoverable cache. With some probability, the data will be saved (not guaranteed). The data is reset periodically as a delta.
https://redis.io/topics/persistence
Is it possible, for example, not to store data like categories in the main database, but always use Redis to store them?
It is possible, but I do not recommend using it as the main DBMS. While it scales well, RAM is much more expensive than SSDs. As a result, you will have to pay bills for memory-heavy servers with multiple Redis instances.
https://stackoverflow.com/a/42677671
What are radishes good for?
For storing data that needs frequent access: a cache of short-lived keys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question