An open API service indexing awesome lists of open source software.

https://github.com/abhirockzz/kafka-streams-interactive-queries

Interactive Queries in Kafka Streams
https://github.com/abhirockzz/kafka-streams-interactive-queries

docker jaxrs jersey kafka kafka-streams stream-processing

Last synced: 3 months ago
JSON representation

Interactive Queries in Kafka Streams

Awesome Lists containing this project

README

          

Practical example for Interactive Queries feature in Kafka Streams. It covers the DSL API and how the state store information was exposed via a REST service.

For details [check this blog](https://medium.com/@abhishek1987/kafka-streams-interactive-queries-9a05ff92d75a)

Everything is setup using Docker including Kafka, Zookeeper, the stream processing services as well as the producer app

Here are the key components

- Metrics producer service - pushes machine metrics (simulated) to Kafka
- Average Processor service - calculates the average of the stream of generated metrics and exposes REST APIs to query them

![](https://cdn-images-1.medium.com/max/2000/1*dmjneoc5Zjwh4cgL5Vd0mA.jpeg)