Last active
January 9, 2020 07:38
-
-
Save miguno/6c4a5704f7e4365d3869b221cc7da8e1 to your computer and use it in GitHub Desktop.
Kafka Streams Example: read a topic as a stream
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
// Create KStream from Kafka topic. | |
StreamsBuilder builder = new StreamsBuilder(); | |
KStream<String, String> stream = | |
builder.stream("input-topic", Consumed.with(Serdes.String(), Serdes.String())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment