O'Reilly logo

Scala for Java Developers by Thomas Alexandre

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

Handling streams reactively

Whenever you need to consume and transform streams of data in web applications, such as watching stock updates or monitoring log activities on a service, you need mechanisms to manipulate chunks of data that can be pushed from a server to a browser, for instance, using Comet (http://en.wikipedia.org/wiki/Comet_(programming)) or WebSocket (http://en.wikipedia.org/wiki/WebSocket) technologies. The Iteratee pattern available within the Play framework is such a mechanism. It was borrowed from the Haskell functional language initially.

Understanding Iteratees in Play

An Iteratee construct aims at providing a composable and nonblocking way of handling streams produced by its counterpart called Enumerator.

Let's launch a Scala ...

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