July 2017
Beginner to intermediate
340 pages
7h 43m
English
While it's usually not relevant, if your microservice deals with a lot of data, using an alternative format can be an attractive option to increase performances and decrease the required network bandwidth without having to rely on GZIP.
The two widely used binary formats out there are Protocol Buffers (protobuf) and MessagePack.
Protocol buffers (https://developers.google.com/protocol-buffers) requires you to describe the data that's being exchanged into some schema that will be used to index the binary content.
It adds quite some work because all data that's transferred will need to be described in a schema and you will need to learn a new Domain Specific Language (DSL).
The following example is taken from the protobuf documentation: ...