Java Concurrency with Akka: Composing Futures
SOURCE: DZONE • 2011-09-22
Ive been intrigued by Akka for a while but finally I was able to take it for a spin. The first thing I wanted to learn was how to compose Futures. Composing Futures provides a way to do two (or more) things at the same time and then wait until they are done. Typically in Java this would be done with a CyclicBarrier. But setting up the code to manage a CyclicBarrier is challenging. So I put together a quick little demo that shows how to do the same thing with Futures in Akka.
read more »