Akka Streams
You have already learned many concepts and developed a couple of Akka Streams examples in Chapter 7, Working with Reactive Streams. As the current chapter is an extension of Chapter 7, Working with Reactive Streams, I recommend that you refer to that chapter and practice those examples before going through this chapter.
Akka Streams revisited
Before moving into the integration of Akka Streams to the Play Framework web application, we will recollect our knowledge about Akka Streams API basics here.
The Akka Streams API has predominantly the following three components:
- Source
- Flow
- Sink
Source is a Producer of a streaming data and has only one Output and no Input points. Sink is a Consumer of a streaming data and has only one Input and no Output.
Flow is a connector or mediator between Source and Sink for a streaming data and has a one Input and one Output.
Apart from these three components, the Akka Streams API has few more components:
- Fan-In function
- Fan-Out function
- RunnableGraph
Fan-In...