May 2017
Intermediate to advanced
414 pages
13h
English
In this recipe, we demonstrated how streams behave within different execution boundaries. For this, we used a simple example of laundry with washing and drying tasks. First, we used the default behavior that encapsulates the execution within a single actor. When we execute this example, we see how the execution occurs sequentially: the Sink pulls an element; this element gets executed by washStage, then by dryStage, and finally, it reaches the Sink. Only when the element is successfully processed by the Sink, another element is pulled from the Source:

Second, we modified the asynchronous boundaries and provided the async modifier ...
Read now
Unlock full access