Skip to content

Benchmarking memory usage #446

Answered by Totodore
sondrelg asked this question in Q&A
Jan 20, 2025 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Hi @sondrelg, I invite you to check again, it should be much better now. There is still a significant gap however that I will defend here:
Yes socket.io has a significant overhead compared to websocket. As it supports 2 multiplexing layers and compatibily to legacy systems http polling most notably, as well as horizontal scaling and some other cool features. It is made to be "user-friendly" and really easy to use. At the cost of this overhead.

If you have a really precise idea of what you want to build and that it is something that must supports 50K sockets one a single machine with less than a Gig of memory then, this may be not the project you are looking for. Otherwise I think that soc…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Totodore
Comment options

@Totodore
Comment options

@sondrelg
Comment options

Comment options

You must be logged in to vote
2 replies
@sondrelg
Comment options

@Totodore
Comment options

Answer selected by sondrelg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants