kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "1095193290@qq.com" <1095193...@qq.com>
Subject Re: What's the use of timestamp in ProducerRecord?
Date Fri, 19 Jan 2018 03:52:01 GMT
kafka  does not delete message when message is consumed, it will purge message when this message
is expired. I guess this timeStamp is for checking whether message is expired.  

From: Jake Yoon
Date: 2018-01-19 11:46
To: users
Subject: What's the use of timestamp in ProducerRecord?
Hi, I am very new to Kafka.
And I have a very basic question.
Kafka doc says,
topic, Integer
partition, Long
timestamp, K
key, V
and I know the default timestamp is the current time. But I am not sure
what's the use of it.
- Is it just to log when the record is added?
- How Kafka use it for?
- Are there any other uses of it?
- Can "Consumer" retrieves the timestamp of the "ProducerRecord"?
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message