Answer the question
In order to leave comments, you need to log in
How to calculate socket.io load?
I used an example to create a stream from the WebCam => server => client browser, example: youtube.com/watch?v=nG7OhBnfefE
Its meaning is that, for example, every 150 ms, a picture is sent from getUserMedia to the server in the form of a base64 code using socket.io and distributed to clients. The smaller the picture, the less data is sent.
In short, I tried it and noticed that even if you send images of very low quality (100x100 for example), a significant amount of base64 code is still sent. And that's just from one user.
I don't doubt the capabilities of socket.io, I was just wondering how many "streaming" users it would take to bring down a server?
In my case, this is 2GB of RAM and 2 cores
Answer the question
In order to leave comments, you need to log in
I think you are wrong here. NodeJS is very good at optimizing networking and streaming. It would be more correct to calculate what you are doing with this picture (calculate the complexity of processing each such request).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question