You may also notice that withProducerFactory is internal API and not available to be used right now.
This feature is used by internal tests within Alpakka Kafka.
Please feel free to suggest the changes you’d like to see in a Pull Request.
I saw that withProducerFactory is an internal API but didn’t found any other way to inject a custom Producer.
Is there an official recommended strategy to do that?
I also tested the Interceptors, but it didn’t manage to use my home made retry policy with a simple interceptor.
I created this pr 710 that contains a proposition to change the factory signature.