Akka Streams HelloWorld example
In this section, we will develop our first Akka Streams simple and old-fashioned HelloWorld application. In this example, we will use or experiment with only two of the Akka Streams API components, as shown here:

Perform the following steps to experiment with this example:
- Create a Scala SBT project in your favorite IDE:
Project Name: akka-streams-scala-helloworld-app
- Add the
akka-streams
dependency in thebuild.sbt
file:
build.sbt:
name := "akka-streams-scala-helloworld-app" version := "1.0.0" scalaVersion := "2.12.2" libraryDependencies ++= Seq( "com.typesafe.akka" %% "akka-stream" % "2.5.9" )
Here, we are using akka-stream "2.5.9"
, the latest stable version.
- Create a AkkaStreams HelloWorld App with Source
~>
Sink:
AkkaStreams_Source2Sink_HelloWorldApp.scala:
package com.packt.publishing.akka.streams.hello import akka.actor.ActorSystem import akka.stream.ActorMaterializer import akka...