简体   繁体   中英

stop kafka consumer from consuming messages

Is there any way to stop kafka consumers from consuming messages for sometime? I want consumer to stop for sometime and later start consuming messages from the last unconsumed message.

Most Kafka libraries have close or pause methods on the Consumer implementation. Or, you could throw some fatal exception during consumption.

Resuming from the last uncommitted offset for a consumer group is the default behavior

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM