Spring Boot, Java, Rabbitmq, Programming, Technology.
HashMap<>(); props.put(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG, true); // Ensure idempotence props.put(ProducerConfig.RETRIES_CONFIG, Integer.MAX_VALUE); props.put(ProducerConfig.MAX_IN_FLIGHT_REQUESTS_PER_CONNECTION, 5); // Maintain order return props; } This configuration for a Kafka producer