Answer the question
In order to leave comments, you need to log in
If a large map is not safe, then where to keep ws connections?
You say that map and a couple of million keys + mutex are not safe. Where then to store links to ws connections?
Answer the question
In order to leave comments, you need to log in
I read your previous questions ...
Do you even understand that there are search engines? Google, Yandex, Bing, etc.
You seem to know how to write, why not look first?
Take redis, stop building bicycles, which in your case are with a square wheel, one and without a steering wheel.
Why is it unsafe?
With numbers like "a couple of million", it's time for you to horizontally scale the service easily.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question