Narrow Band Extensible Message Format

I am collecting a technical response to the tender, one of the requirements is the transmission of messages using an extensible format over a narrow bandwidth (10 bytes / sec or so). To make life easy on a server that will receive information from 1000 devices, I would like to use Xml. To solve the bandwidth issue, I could use compressed Xml, but the data comes from embedded devices that may not have omph to compress on the fly. Anyone has any better ideas, ideal would be a small extensible format that could be hyrdated in Xml as soon as messages were received in a narrow band.

+3
source share
5 answers

Google Protocol Buffers

Protocol buffers are a way of encoding structured data in an efficient but extensible format. Google uses protocol buffers for almost all of its internal RPC protocols and file formats.

+4
source

YAML is a very thin format, ideal for transferring serialized information between devices. Libraries exist for most programming languages, so the server can probably figure it out directly, and there is no need to convert to XML.

0
source

. , ASCII. , , , ? , , ASN.1. , .

0

, Google Apache Thrift . , , ( / ).

Apache Avro - .

0

, XML. XML- , "" XML ( , , , ..), XML , , JSON. / JSON , XML YAML . Avro Thrift Google Protocol Buffers , .

10 , , , , ; , , - protobuf, , , .

0
source

Source: https://habr.com/ru/post/1712194/


All Articles