Hello! I have a chat, messages are stored in python objects and then downloaded to a database for storage. But the fact is that if I did some editing on the server and decided to reload, then all the data will disappear, of course, but this is bad.
The output that I immediately saw was a cache, perhaps Redis. But this is a whole separate service that will work and consider essentially the same database. And as it seems to me, the load will be strong given the sending "read the message" and the preservation of this status. And from here there will be signs when sending a message, if there are a lot of people.
Please tell me what to do in this case? I'm wrong and Redis will work very quickly, almost not a bit slower than storing in python objects inside the program's memory? Or some other method to solve this problem.
Tell me, how to correctly use the cache in this case?