I look for storage of type a key - the list of values. Redis fits very well, but I have never used it before, but I've heard a lot. It is often said that Redis is a direct path to lost data. Is it so? How high is the probability of losing anything in practice and how much data is lost?

https://redis.io/topics/persistence - it seems they write here that you can set AOF for each request, does this mean that I don’t lose my data now or in practice everything is not so pretty?

In general, is Redis suitable for data that you don’t want to lose?

    1 answer 1

    Redis is not intended to guarantee data storage. First of all it is inmemory database. All data during operation is stored in memory. The dump to disk is saved asynchronously. Accordingly, server failure between dumps, lack of memory - all this will lead to the loss of data. Main scopes: cache, intermediate calculations, session storage, etc.

    However, if you have multiple Redis servers, replication is configured, and it’s unlikely that all servers will shut down, you can try. https://habr.com/post/178525/