In this post we will see how to use docker-compose and sbt-docker to deploy Scala microservices. We will create services to (1) get tweets using the Twitter streaming API and put them in Kafka, (2) read from Kafka and get the number of hashtags in each tweet, and (3) see how to use sbt-docker plugin to create separate Docker images for our services. Finally, we will use docker-compose to define the environment for our services and run them.
The full code and instruction to run example is available at https://github.com/saumitras/kafka-twitter-docker. https://goo.gl/GFuY6P #DataIntegration #ML
Share this:
- Click to share on Facebook (Opens in new window)
- Click to share on Twitter (Opens in new window)
- Click to email a link to a friend (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to share on Tumblr (Opens in new window)
- Click to share on Pinterest (Opens in new window)
- Click to share on Reddit (Opens in new window)