Answer the question
In order to leave comments, you need to log in
NodeJS & WebSocket load issues?
I am writing a chat using NodeJS + WebSocket as a VK in terms of functionality. For WebSocket I use the ws module. The functionality is: typing a message, a message has been read, a new message. It's all going through JS. With 3-4 online, everything works great. As soon as it becomes more online, NodeJS + WebSocket starts to blunt. Who knows how to deal with loads and do the right optimization?
Answer the question
In order to leave comments, you need to log in
profile and look for what tupit. One Allah knows that you planed in the code there. JS is not multi-threaded, so you could very well block the thread of execution somewhere in debt or often.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question