Answer the question
In order to leave comments, you need to log in
Where is it better to store the socket connection with each client, in a regular array or in redis?
And why.
Radishes is fast, but is it faster for these purposes than regular array variables?
Variables are also stored in RAM.
Answer the question
In order to leave comments, you need to log in
Obviously, radishes are much slower than normal variable access, so it's best to store everything in variables. Sending requests will give a particularly large overhead. For example, 100-200 thousand simple requests per second, they may well load your script by 100% and redis by 30 percent.
Nevertheless, redis is still a very useful thing for the following reasons:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question