I am using spring cloud streams for consuming kafka. I need to get the time the event has been published to the queue from the publisher(publisher time not the broker ingestion time)
I can see below information in headers:
kafka_timestamptype=createtime,
kafka_receivedTopic=Topic_Name,
kafka_receivedTimestamp= 1563108979621,
timetstamp= 1563108984514
I am really confused on above two timestamps. I did see in some sources saying that create time timestamp means that its the publishing timestamp from producer.But what represents the publishing time , is it kafka_ receivedTimestamp or just timestamp?
When using spring cloud streams I noticed that spring message headers has timestamp in springs control. Does that mean kafka_receivedTimestamp is the publishing time of the record.
Documention just says that, “The header for holding the timestamp of the consumer record. “. It doesn’t clarify if its the consuminng time or publishing time or broker ingestion time.
Could anyone suggest what does these two timestamps mean based on the timestamp type?