Answer the question
In order to leave comments, you need to log in
Which is better: Redis or Python dict?
To create an anonymous chat, I need to choose how to store messages between users. In fact, they will have to be stored for a maximum of 2 seconds, so the idea arose to store them simply in a standard Python dictionary. Tell me, is this a rational decision?
Answer the question
In order to leave comments, you need to log in
Radish is better. If later you want to scale the chat, you still have to organize communication between several processes.
Yes Yes. I, too, as I wrote this post, immediately realized that the problems begin with an increase in cars, but I'm just learning from this project. I’ll connect to this Redis later, I just wanted to know about performance.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question