Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MIME type for msgpack?

msgpack seems to be an extremely fast, if extremely new format for data serialisation. Does it have a recognised MIME type yet? If not, what should be used in the interim?

like image 505
Tim McNamara Avatar asked Jul 31 '11 10:07

Tim McNamara


People also ask

What is Msgpack format?

Message Pack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON but it's faster and smaller.

Is Msgpack faster than JSON?

Decoding operations usually are slower for both formats, but MessagePack wins here again. When performing a single decode operation, MessagePack is faster by 1 ms. While 100 decode operations execute 62 ms faster with MessagePack instead of json.

What is MessagePack used for?

MessagePack is a fast and compact binary serialization format. It's useful when performance and bandwidth are a concern because it creates smaller messages compared to JSON.

What is Msgpack Python?

MessagePack is a fast, compact binary serialization format, suitable for similar data to JSON. This package provides CPython bindings for reading and writing MessagePack data.


1 Answers

From Wikipedia : According to RFC 6838 (published in January 2013 : https://www.rfc-editor.org/rfc/rfc6838), any use of types in the "x." tree is strongly discouraged. Media types with names beginning with "x-" are no longer considered to be members of this tree since January 2013.

Then use directly application/msgpack

like image 154
Nelson G. Avatar answered Oct 06 '22 08:10

Nelson G.