Skip to content

Instantly share code, notes, and snippets.

@aludwiko
Created November 17, 2017 12:35
Show Gist options
  • Select an option

  • Save aludwiko/7283e2d33874bc2f285ec1f1e3861b15 to your computer and use it in GitHub Desktop.

Select an option

Save aludwiko/7283e2d33874bc2f285ec1f1e3861b15 to your computer and use it in GitHub Desktop.
Source(1 to 10)
 .map(toKafkaRecord)
 .via(Producer.flow(producerSettings))
 .runForeach(i => println(s"${i.message.passThrough} sent to kafka"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment