Message created time in Kafka -


How do I know if this message is produced / made when I use the message in Kafka?

  There is no ready method in the message and matadata   

and how is it necessary to set offset in Kafka? I like settings from code or command line.

Thank you.

Currently there is no per-message timestamping in Apache Kafka 0.7 or 0.8, but it would be easy.

What is the time-based offset-lookup in the offset API:

Time - Used to ask for all messages before a certain time (MS). Two special values ​​are to specify the -1 to get the latest offset (i.e. the offset of the next incoming message) and to get the offset available as soon as possible in 2. Note that the offset is pulled in descending order, so by asking offset as soon as possible you will always get an element back.

Etc.) and in the case of replication it may be wrong (timestamp of replication rather than the creation of the original block).

The solution is to embed the message creation time in the message.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -