/AkkaPubSub

Test mircroservice function using Akka, Kafka, Redis with Spark, and dump data to NoSQL

Primary LanguageScala

AkkaPubSub

Akka

  • FSM - status management
  • http - akka http client for JSON response
  • Stream - combine with spark and actor

Kafka

  • Actor - combine with Akka actor with Kafka
  • Stream - combine with spark streaming

Redis

  • PubSub - replace Kafka with Redis as lightweight PubSub engine

Mongo

Spark

  • SparkSQL with Hive (should use spark-submit)
  • Submit spark job by akka actor

Run on production

build

  1. sbt
  2. compile
  3. assembly

run

  • [Pure Scala APP] java -cp target/scala-2.11/AkkaPubSub-assembly-xx.jar com.github.tykuo.xx.SomeMainClass
  • [Spark APP] spark-submit --class com.github.tykuo.xx.SomeMainClass target/scala-2.11/AkkaPubSub-assembly-xx.jar arg1