-
Notifications
You must be signed in to change notification settings - Fork 975
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
Use MessagePack for event dispatch to server #73
Use MessagePack for event dispatch to server #73
Comments
Node binding seems to be slower than default JSON methods (5x and 3.5x). It would definetely help reduce the network transfer but it would cause a decrease in server performance. |
MessagePack work very fast for large amounts of data, but sucks on small chunks. May be it could be optional? Some servers suffers from small bandwidth but have a lots of free CPU power at the same time. |
Currently json implementation is used quite a lot through all the code, so it would be lots of changes to the core. As this also concerns SDKs (many of which are managed by different developers), I really don't see this as an option for now. |
There is a great binary format similar to JSON: http://msgpack.org and it have node.js binding: https://github.com/pgriess/node-msgpack
I think it would be great to add binary event endpoint (http://serverName.com/b for example) and receive events as content of HTTP POST requests.
If anyone could implement this server enhancement i'll send patch for iOS SDK with MessagePack support.
The text was updated successfully, but these errors were encountered: