GraphDSL
GraphDSL is a domain-specific language embedded in Akka Streams that provides a structured way to compose processing graphs from sources, flows, and sinks. It extends the basic linear API by allowing arbitrary graph shapes, including fan-out and fan-in patterns, to be built and manipulated as a single RunnableGraph. The DSL is available in both Scala and Java APIs and is widely used for modular, reusable stream topologies.
Core concept is a builder that exposes a small set of wiring primitives. The builder.add method incorporates
Typical uses include assembling complex processing pipelines that cannot be expressed with a single Flow or
References to GraphDSL appear in the Akka Streams documentation under GraphDSL and the Scala DSL (akka.stream.scaladsl.GraphDSL)