January 2018
Intermediate to advanced
336 pages
7h 56m
English
The keys and values published on a Kafka topic must have associated SerDes (https://en.wikipedia.org/wiki/SerDes). The examples used in the previous section used LongDeserializer for keys and StringDeserializer for the Kafka Consumer. Similarly, the Kafka Producer for the corresponding consumer will use LongSerializer and StringSerializer to publish the key and value, respectively. Since microservices may be written in any programming language and may need to collaborate with other services over Kafka topics, the language-dependent SerDes is not a good option.
Avro (https://avro.apache.org/) is a data serialization format that is language agnostic and has support for most of the well-known programming languages ...
Read now
Unlock full access