Akka Dynamic Streams
When we know the complete flow from Producer to Consumer in advance, we can create that Graph using simple Source, Flow, and Sink components (if required, use Fan-In and Fan-Out functions too). We should use that Graph as it is to compute a task. This is why they are known as Static Data Stream components. This means that all the Graph component's connections must be known in advance and be connected upfront.
However, there are some scenarios where we don't know how the Graph components are connected and how many components are required to fulfill a computation. We don't know this kind of dynamic nature in advance. So, we should create those graphs dynamically using some of the Akka Streams components. This kind of Akka ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access