Skip to content
/ KAFKA Public
forked from obaydakov-zz/KAFKA

Scala applicaton to get familiar with the workflow of Apache Kafka, its workflow. I used also Akka-Stream, Akka-Actor.

Notifications You must be signed in to change notification settings

leetoo/KAFKA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala Consumer & Producer

Scala applicaton to get familiar with the workflow of Apache Kafka. Idea of app:

Kafka topic: "topic1" ~> Scala's magic 😉 (split lines of word to single words) ~> Kafka topic "topic2"

You can find two different versions:

  • First - We create the pipeline of app on our own. We specify all of the settings etc.
  • Second - Much easier based on akka-stream mainly.

CHEATSHEET

  • start zookeeper: bin\windows\zookeeper-server-start.bat config\zookeeper.properties
  • start kafka: bin\windows\kafka-server-start.bat config\server.properties
  • list topics: bin\windows\kafka-topics.bat --list --zookeeper localhost:2181
  • create topic: bin\windows\kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic {name of your topic}
  • send messages: bin\kafka-console-producer.bat --broker-list localhost:9092 --topic {name of your topic}
  • view messages in topic: bin\windows\kafka-console-consumer.bat --zookeeper localhost:2181 --topic {name of your topic} --from-beginning

About

Scala applicaton to get familiar with the workflow of Apache Kafka, its workflow. I used also Akka-Stream, Akka-Actor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%