In SpringBoot-application, which have been deployed in Stream, I use properties in yaml-file:
spring: kafka: producer: retries: 8