In the previous section, we have seen a number of projects that are using Enumerators
/Iteratees
to send and receive messages reactively, with various levels of complexity. Iteratees
are powerful, but using them can sometimes lead to code snippets that are not easy to understand. The Play Actor Room project, which is available at https://github.com/mandubian/play-actor-room, proposes to reduce some of the complexity of setting up Iteratees
by abstracting away this part and letting the programmer focus only on the domain logic, such as processing incoming messages and assembling outgoing messages. This project started from the observation that many applications need the same functionality, which can be seen as a server Room
(holding state, for instance, and being the middle man between distributed clients). The role of this room is to listen for incoming messages from connected clients, and either broadcast received messages after processing them or just unicast communication...
Scala for Java Developers
By :
Scala for Java Developers
By:
Overview of this book
Table of Contents (19 chapters)
Scala for Java Developers
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Programming Interactively within Your Project
Code Integration
Understanding the Scala Ecosystem
Getting Started with the Play Framework
Database Access and the Future of ORM
Working with Integration and Web Services
Essential Properties of Modern Applications – Asynchrony and Concurrency
Building Reactive Web Applications
Scala Goodies
Index
Customer Reviews