Ammonite Kafka Producer
Alexey Novakov published on
6 min, 1087 words
If you need to run a Scala code as a script, i.e. using Scala source file to execute some short code,
then Ammonite Scripts
may be a solution for you. Ammonite project consists of a REPL, script launcher and a few Scala libraries.
Let’s write a script to generate JSON data and send it to Apache Kafka topic.