Skip to content

An example showing how to integrate Apache Kafka with Akka Streams and Akka HTTP.

Notifications You must be signed in to change notification settings

calvinlfer/Kafka-Akka-HTTP-and-Akka-Streams-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akka HTTP + Akka Streams + Apache Kafka Integration Example

This application reads from an existing Kafka topic from the earliest offset and streams the response over HTTP with the help of Server-Sent Events.

How to use

Create a topic and publish some data on it. Perform GET /streaming-kafka/<topicName> in order to see the data that is published on the Kafka topic. Note that it is an infinite streaming response so any newly published data on the Kafka topic will continue showing up in the streaming response.

Note: I use the same consumer group so if two users hit the same endpoint then only one user may see all the data or both users may see only some part of the data due to how the consumer group binds each consumer to partitions in the topic.

About

An example showing how to integrate Apache Kafka with Akka Streams and Akka HTTP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published