Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Kafka Streams Example: Continuously aggregating a stream into a table
// Continuously aggregating a KStream into a KTable.
KStream<String, String> locationUpdatesStream = ...;
KTable<String, Long> locationsPerUser
= locationUpdatesStream
.groupBy((k, v) -> v.username)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment