Consuming and Producing
Produce Messages
kafka-console-producer --bootstrap-server kafka1:9092 \
--topic sandbox.test
Consume Messages
kafka-console-consumer --from-beginning \
--bootstrap-server kafka1:9092 \
--group sandbox.test \
--topic sandbox.test
It is key to know that kafka stores binary data, it does not care if the internal serialization of the data represents a character string, image, number, or even if the data is encrypted or plain.
All the serialization/deserialization process occurs on the client side, when producing or consuming.