Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Real-time Aggregation

How to Aggregate a real-time


stream?
Real-time Aggregation

Streaming Word Count

Hello Kafka Streams Hello World


Kafka Topic

Source

Word Count
Hello 2
World 1
Kafka 1
Word Count
Streams 1

Print
Streaming Word Count

Hello Kafka Streams Hello World


Kafka Topic

Source

KS0

flatMapValues Key Value


null hello
null word
KS1 null hello
KS1.groupByKey() 1. Group By null kafka
KS1.groupBy(…) 2. Aggregate null streams

You might also like