Created
November 17, 2017 12:37
-
-
Save aludwiko/c5a87ffcb76d88c9331334cb8004e135 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source(1 to 10) | |
.flatMapConcat { i => | |
Source.single(i) | |
.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