Xmage server uses excessive network bandwidth #2812
Labels
Comments
|
Interesting note on protocol buffers. Let me look into what can be done. |
|
Reproduced issue in tests, working on changes on protocol. |
|
It's the user list and the games table that is completely transfered about every 2 seconds. |
|
Is the protocol event based? In cockatrice we use a "user joined/left" and "game created/removed" event from the server. Would be a rather massive win |
|
I'd be interested in helping with this, however it's not something I know a lot about. What would be a good way for me to learn? |
Closed
|
250 players online example from last commit 38293e4:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I was talking today with a server operator who runs both cockatrice and xmage servers, and they mentioned that the XMage server consumed over 500gb of network in one day for 200 users, where the cockatrice server used 250gb for 23 days with 600 users.
It sounds like you're using an xml or json based protocol. Cockatrice used to use an xml one, and when we switched to using Protocol Buffers, network traffic dropped by over 95%.
This matters quite a lot for players or server operators who are on metered internet. The situation I mentioned above came up because the operator discussed that he had originally moved the xmage server to a cheaper but bandwidth-metered server and had to change it again due to the heavy traffic requirements.
The text was updated successfully, but these errors were encountered: