- Script payments_producer.ps1 generates records in json with schema {price: $price, messageCount: $count}, where $price - random generated number from 1 to 1000, $count - orederd number in the loop.
- Kafka producer cli sent records to one-partitioned topic "payments".
- @KafkaListener listen this topic for new records and split theirs by one-minute intervals.
- By every interval there is calculated sum of prices and list of instants of every record from payments. That's all together consist one instance of tumbling window, writing to "tumbling-window" topic.
- In general, application performs one minute realtime tumbling windows on incoming stream of prices and publich this to out topic.
-
Notifications
You must be signed in to change notification settings - Fork 0
sboriskin287/kafka_tumbling_windows
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published