0Pricing
Scala for Backend Engineering & Functional Programming · Lesson

Running a Pipeline

Materialize and execute a graph.

From Blueprint to Execution

So far the pipeline has been a pure blueprint. Materialization is the process that turns that blueprint into running actors that actually move data.

Nothing happens until you explicitly run the graph, which is what makes Akka Streams composable and reusable.

The ActorSystem

Materialization requires an ActorSystem, which provides the threads and dispatcher that back the stream's stages. In modern Akka, the system also acts as the implicit materializer.

One ActorSystem typically serves an entire application and many concurrent streams.

import akka.actor.ActorSystem

implicit val system: ActorSystem =
  ActorSystem("data-pipeline")
import system.dispatcher // ExecutionContext

All lessons in this course

  1. Source, Flow, and Sink
  2. Transforming Streams
  3. Backpressure
  4. Running a Pipeline
← Back to Scala for Backend Engineering & Functional Programming