简体   繁体   中英

Idempotent Kafka Producer writing to multi-partitioned topic

Does an idempotent producer have to be transactional in order to ensure idempotency when publishing to a multi-partitioned topic? After reading Kafka documentation I am still unsure if it does or not.

My environment is Kafka 1.0 cluster and Kafka 1.1 client.

Idempotent producer create an id which is send with the messages. With this id, the lead broker is able to say 'Oh, I already treated this message'.

Idempotent producer and transactional messaging are two different approaches of making a exactly-once messaging semantics.

So, no !

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