Stav Alfi
Stav Alfi

Reputation: 13923

What is the kafka message "timestamp" represents?

  1. Is it in epoch ms or in seconds?
  2. Does it represents when the message arvived to kafka? Or sent by the kafka-client-producer? Or when it was consumed?
  3. How can I know the difference clock time between my VM to the Kafka VM in Confluent Cloud?

Upvotes: 2

Views: 4339

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191725

In most Kafka clients the timestamp is set when the producer record is generated, before serialization, and it's usually epoch ms, but this is not consistent across all clients. For example, I've noticed python using only seconds

You shouldn't need to care about clock skew in Confluent Cloud

Upvotes: 1

Related Questions