O'Reilly logo

Akka Concurrency by Derek Wyatt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16

Granular Concurrency with Dataflow

Up to this point, we've been working with a concurrency that has been coarse; that is, a function must execute entirely before control returns to the thread on which it is currently executing. By taking advantage of Scala's continuations feature, along with the power of futures, Akka has developed a feature known as dataflow, along the same lines as the feature of the same name implemented[1] in the Oz programming language.[2]

Dataflow concurrency lets you write a function so that it appears as a sequential method, but is actually broken up into discrete functions that enable the "sequential" function to execute concurrently with other parts of its own implementation. The ability to do this is not ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required