April 2026
Intermediate
491 pages
18h 4m
English
The communication between distributed systems only works if both systems agree on how information is exchanged and, above all, agree on the significance of this information.
The meaning of the individual transferred data is often defined as a data schema, for example, using XML schemas, Protobuf (Protocol Buffers) descriptions, or JSON schemas.
Listing 6.27 shows the contents of a Protobuf file in which the structure for a person is defined.
message Person { string name = 1; int32 id = 2; // Unique ID for the person. string email = 3; message PhoneNumber { string number = 1; PhoneType type = 2; } repeated PhoneNumber phones = 4; google.protobuf.Timestamp last_updated = 5;} enum PhoneType { PHONE_TYPE_UNSPECIFIED ...
Read now
Unlock full access