How to integrate akka streams kafka (reactive-kafka) into akka http application?
问题 I have a basic scala akka http CRUD application. See below for the relevant classes. I'd simply like to write an entity id and some data (as json) to a Kafka topic whenever, for example, an entity is created/updated. I'm looking at http://doc.akka.io/docs/akka-stream-kafka/current/producer.html, but am new to scala and akka, and unsure of how to integrate it into my application? For example, from the docs above, this is the example of a producer writing to kafka, so I think I need to