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

Use MessagePack for event dispatch to server #73

Closed

Comments

@molind
Copy link

molind commented Aug 26, 2013

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.

@osoner
Copy link
Member

osoner commented Aug 26, 2013

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.

@molind
Copy link
Author

molind commented Aug 26, 2013

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.

@ar2rsawseen
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment