|
|
|
|
|
by ynniv
5115 days ago
|
|
cheald has an excellent comment regarding MessagePack, JSON, and Protocol Buffers in the post from 15 hours ago: http://news.ycombinator.com/item?id=4091051 MessagePack is not smaller than gzip'd JSON
MessagePack is not faster than JSON when a browser is involved
Other comments from that post include: MessagePack is not human readable
MessagePack has issues with UTF-8
Small packets also have significant TCP/IP overhead
Really, anyone who hasn't read the other comments should: http://news.ycombinator.com/item?id=4090831 |
|
A major use case of MessagePack is to store serialized objects in memcached. A blog post written by Pinterest describes this use case (http://engineering.pinterest.com/posts/2012/memcache-games/). They use MessagePack with Python which is faster than one with JavaScript. They could store more objects in a server without performance declination (e.g. gzip).
It's true that MessagePack is not always faster than JSON (e.g. within browsers), and it's not always smaller than other serialization methods (e.g. with gzip compression). So we should consider that which serialization methods should I use for "my" case.
There are also general tendency which is helpful to select MessagePack or JSON: