This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8803|Reply: 0

Kafka's auto.offset.reset value is explained in detail

[Copy link]
Posted on 7/31/2021 11:08:56 AM | | | |
Auto.offset.reset value meaning explained
Review:

The Kafka Windows system will hang up after running for a period of time
https://www.itsvse.com/thread-9984-1-1.html

Windows Kafka ERROR Failed to clean up log for __consumer_offsets
https://www.itsvse.com/thread-9980-1-1.html

Kafka configures JMX remote monitoring
https://www.itsvse.com/thread-9968-1-1.html

Detailed explanation of Kafka configuration parameters
https://www.itsvse.com/thread-9965-1-1.html

Kafka manually sets the offset offset
https://www.itsvse.com/thread-9641-1-1.html

Kafka operations for .NET/C# message queues [with source code]
https://www.itsvse.com/thread-9619-1-1.html

earliest

When there are committed offsets under each partition, consumption starts from the submitted offset; If there is no committed offset, the consumption is started from the beginning

latest

When there are committed offsets under each partition, consumption starts from the submitted offset; When there is no committed offset, the newly generated data under that partition is consumed

none

topicIf there is a committed offset in each partition, it will be consumed from the offset. As long as there is a partition where there is no committed offset, an exception is thrown

Suggested useearliest

defaultslatestThis setting is easy to lose messages, if there is a problem with the microservice application, and the data is written to the topic, at this time the site application is restarted, this setting will start consumption from the latest offset, and it doesn't matter which ones have problems in the middle. Using earliest mode, after setting this parameter, the microservice application is restarted, and the unconsumed offset can be found to continue consumption.


Documentation:The hyperlink login is visible.





Previous:Java annotates the difference between @PostConstruct and static constructors
Next:The next tool still needs money, thinking about money is crazy!
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com