O'Reilly logo

Scala Reactive Programming by Rambabu Posa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing Akka Dynamic Streams

Before integrating Akka Streams into our Play web application, in this section, we will develop and explore Akka Streams Dynamic components with one simple example.

Perform the following steps to explore Akka Streams Dynamic components:

  1. Create a Scala SBT project in your favorite IDE:
      Project Name: akka-dynamic-streams-scala-app.
  1. Add the akka-streams dependency in the build.sbt file as shown here:

build.sbt

      name := "akka-dynamic-streams-scala-app"      version := "1.0.0"      scalaVersion := "2.12.4"      libraryDependencies ++= Seq(       "com.typesafe.akka" %% "akka-stream" % "2.5.9"      )
  1. Develop and test AkkaStreamsMergeHubApp, as shown here:
      object AkkaStreamsMergeHubApp extends App{ implicit val actorSystem = ActorSystem("MergeHubSystem") ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required