Skip to content

Real time data streaming service + Real time UI, example of serving twitter data transformed in a full streaming approach using kafka-stream, and a full reactive approach

Notifications You must be signed in to change notification settings

nicolasbelfis/http-streaming-from-kafka

Repository files navigation

Java CI with Maven

Streaming twitter with kafka streams and reactor

prerequisites

  • a twitter developer account and replace the bearer token value in file stream-api/src/main/resources/application.yaml
  • docker, npm, maven and java installed

backend

stream twitter directly

img.png

run stream-api/src/main/kotlin/simple/Application.kt with spring profile direct-twitter

start streaming event from twitter curl --location --request GET 'http://localhost:8080/stream/sseTweets'

stream raw tweets from kafka directly

img_2.png

start kafka cluster : docker-compose up

producing data

run twitter-worker/src/main/kotlin/worker/TwitterWorkerApplication.kt

api to listen to topic

run stream-api/src/main/kotlin/simple/Application.kt with spring profile kafka-twitter

start streaming event from kafka curl --location --request GET 'http://localhost:8080/stream/sseTweets'

count tweets per tag with kafka stream

without state querying

img_3.png

with state querying

img_4.png start kafka cluster : docker-compose up

streaming app

run twitter-kafka-stream/src/main/kotlin/stream/TwitterStreamingApplication.kt

producer

run twitter-worker/src/main/kotlin/worker/TwitterWorkerApplication.kt

api to listen to topic

run stream-api/src/main/kotlin/simple/Application.kt with spring profile kafka-twitter

start streaming event from kafka curl --location --request GET 'http://localhost:8080/stream/sseTweets?filters={tag1},{tag2},...{tagN}'

start frontend

cd into cd frontend-app/ui , run npm run start

About

Real time data streaming service + Real time UI, example of serving twitter data transformed in a full streaming approach using kafka-stream, and a full reactive approach

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published