-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bandwidth Gains #7
Comments
May also be a time to consider using something with a better track record on the networking side: https://github.com/faye/faye |
I have been googling around and I can't seem to find any definitive sources saying faye is better than socket.io. That was a good link on bandwidth management. I will keep that in mind and will probably tweak the current implementation when I get the time. Along with shortening the event names and data, I would probably end up using the base128 encoding as it will be the least error-prone/easiest approach with decent payoff. What do you think? |
It wasn't so much that one was better than another it was that socket.io has been known to leak under sustained loads. Re encoding, if it's not too lossy, that sounds great.
|
Faye seems easy enough so if I find sufficient evidence against socket.io regarding leaks/etc then it would make sense to switch. |
There are gains to be made my introducing AOI filtering, switching from broadcast to multicast, and potentially switching protocols with socket.io so we aren't sending really fat packets all the time.
This is related to #1 and #2 but will involve it's own effort.
Relevant read: http://buildnewgames.com/optimizing-websockets-bandwidth/
The text was updated successfully, but these errors were encountered: