By defining a producerFactory, I can inject my home made KafkaProducer using ProducerSettings.scala
One question, why is this factory requiring to produce a KafkaProducer?
(I would expect to see its interface Producer)
ProducerSettings[K,V] => KafkaProducer[K,V]
By example, for testing purposes, I wanted to use MockProducer in my custom producerFactory