F
F
f0rt12014-05-21 00:52:08
JavaScript
f0rt1, 2014-05-21 00:52:08

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

2 answer(s)
S
Sergey, 2014-05-21
Protko @Fesor

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.

Z
zxmd, 2014-05-21
@zxmd

Of course, I'm not dohtor, but you can forget about asynchrony?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question