Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magic byte in Apache Kafka

Does anybody know about magic byte in Kafka? What is it used for and how is it used?

Can a producer send any value in magic byte to Kafka partition?

Please share any documentation on this.

like image 886
dev Avatar asked Mar 18 '15 04:03

dev


1 Answers

As per Kafka Wire Protocol Guide Magic Byte is used for backwards compatibility of message format and the current value is 0.

Looks like this is ignored now and passing any value as Magic Byte works for me.

like image 198
serejja Avatar answered Sep 28 '22 22:09

serejja