Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Writing Twice a record in Kafka is problematic, making the consumer process a record twice !

If the sequence number is incorrect and duplicated, the broker will ignore the duplicated record and it won’t write the record again.

How to enable the Idempotent Producer

props.put("enable.idempotence", "1"l); //enable idempotence

  • No labels