Complete the code to enable idempotence in the Kafka producer configuration.
Properties props = new Properties(); props.put("bootstrap.servers", "localhost:9092"); props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer"); props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer"); props.put("[1]", "true");
Complete the code to set the maximum number of retries for the idempotent producer.
props.put("[1]", 5);
Fix the error in the code to limit the number of in-flight requests for idempotent producer.
props.put("max.in.flight.requests.per.connection", [1]);
Fill both blanks to configure the producer for idempotent delivery with correct acknowledgments.
props.put("[1]", "true"); props.put("[2]", "all");
Fill all three blanks to complete the idempotent producer configuration with retries and in-flight request limits.
props.put("[1]", "true"); props.put("[2]", 3); props.put("[3]", 1);
