'Exactly once delivery and production exception handler

Two specific configurations in kafka streams has been confusing me. Exactly once delivery and production exception handler.

As per documentation seting the processing.gurantee to exactly_once ensures that number of retries of producer is set to retries=Integer.MAX_VALUE . Whereas the production exception handler handles exception for two scenarios. Network or serialization errors.

If the max retry is already maximum integer value if processing.gurantee is set to exactly_once then will there be any scenario when the production exception handler will have to catch an exception because of network issue given that the kafka is high availability.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source