Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Kafka's message include timestamp by default?

Tags:

apache-kafka

Does Kafka's message include timestamp by default? Or it required to put timestamp in body message manually if needed?


1 Answers

Yes, all Kafka messages (since 0.11) include a timestamp. This can be set explicitly by the producer, or configured at a broker or topic level to be the timestamp at which the message was written to the topic.

like image 142
Robin Moffatt Avatar answered Jul 22 '26 13:07

Robin Moffatt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!