From the official documentation in Kafka as a Storage System:
Data written to Kafka is written to disk and replicated for fault-tolerance. Kafka allows producers to wait on acknowledgement so that a write isn’t considered complete until it is fully replicated and guaranteed to persist even if the server written to fails.
Write a new Kafka producer ProducerAcksDemo
that uses ProducerConfig.ACKS_CONFIG:
The number of acknowledgments the producer requires the leader to have received before considering a request complete.
ProducerAcksDemo
that uses the different levels of acks
:
acks=0
acks=1
acks=all
acks
relate to min.insync.replicas
configuration property?
Duration: 30 mins