It could be beneficial to have version of Producer flow that will allow interpret kafka client error instead of failing stream in case of error (support emitting success/error downstream).
and extent subtypes of sealed trait Results[K, V, PassThrough] to also extend ResultsWithError
Such solution could enable scenarios like:
integration with legacy systems to ensure guaranteed publication - even in case of failure we can notify caller e.g. using attached as PassThrough element CompletableFuture
resilient KafkaProducer that don't discard messages that were “in the stream” when it restarts
Short description
As discussed on https://discuss.lightbend.com/t :
It could be beneficial to have version of Producer flow that will allow interpret kafka client error instead of failing stream in case of error (support emitting success/error downstream).
Details
We can introduce:
and extent subtypes of
sealed trait Results[K, V, PassThrough]
to also extendResultsWithError
Such solution could enable scenarios like:
PassThrough
elementCompletableFuture