Fan-In functions

In Akka Streams GraphDSL, a Fan-In function is a function with multiple inputs and single output.

In simple words, Fan-In means multiple inputs. A GraphDSL Fan-In function is also known as GraphDSL Fan-In junction:

As shown in the preceding diagram, it takes two inputs from other components from the RunnableGraph and performs a given operation to result it to one output:

Akka Streams GraphDSL has the following Fan-In junctions:

  • Merge[In]: (N inputs, 1 output) This picks randomly from inputs pushing them one by one to the output ...

Get Scala Reactive Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.