Skip to content
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

Open
dylan opened this issue Dec 5, 2013 · 4 comments
Open

Bandwidth Gains #7

dylan opened this issue Dec 5, 2013 · 4 comments

Comments

@dylan
Copy link
Contributor

dylan commented Dec 5, 2013

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/

@dylan
Copy link
Contributor Author

dylan commented Dec 5, 2013

May also be a time to consider using something with a better track record on the networking side: https://github.com/faye/faye

@cha55son
Copy link
Member

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?

@dylan
Copy link
Contributor Author

dylan commented Dec 10, 2013

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.

On Dec 9, 2013, at 6:51 PM, Chason Choate [email protected] wrote:

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?


Reply to this email directly or view it on GitHub.

@cha55son
Copy link
Member

Faye seems easy enough so if I find sufficient evidence against socket.io regarding leaks/etc then it would make sense to switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants