| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
by 🅐🅛🅔🅧🅐🅝🅓🅔🅡 🅞🅝🅑🅨🅢🅗
This is a final project of Streaming programming with Scala at UCU. The aim of this project is to develop services for streaming data to Kafka topics then combine them using Kafka stream join.
The idea of the project is to get real stream of tweets and stock prices for given stock symbols, join them by symbol and forward to another Kafka topic for future processing.
Diagram shows rough architecture:

twitter-service - services gets real time stream of tweets with given keywords, all messages go to kafka tweets topic.
stocks-service - services gets real time stocks prices from IEX by given stock symbols, all prices go to kafka stocks topic.
combiner-service - service pulls messages from tweets and stocks, join them by stock symbol and sends to enriched topic.
This command will start zookeeper and kafka clusters. Default port is 9092.
make kafka-startShut down cluster:
make kafka-stopTOKEN=sk_0000000000000000000000000Token should be requested from IEX
ACCESS_TOKEN_SECRET=
ACCESS_TOKEN=
CONSUMER_SECRET=
CONSUMER_KEY=Credentials should be requested from Twitter Developer
make kafka-create-topicsmake services-start
# to stop
make services-stopmake install-kafkaf topicskaf consume tweets
kaf consume stocks
kaf consume combinedAll images are build automatically from master branch by DockerHub:
If you want to update code just rebuild docker image:
cd twitter-service
docker build -t twitter-service .| Back | FazBrowse Home | New Git URL |