A
A
Alexander Shendrik2015-06-30 21:05:53
CMS
Alexander Shendrik, 2015-06-30 21:05:53

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

2 answer(s)
I
Ilya, 2015-06-30
@TheSuperD20

Radish is better. If later you want to scale the chat, you still have to organize communication between several processes.

A
Alexander Shendrik, 2015-06-30
@TheSuperD20

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 question

Ask a Question

731 491 924 answers to any question