Reactive Web Applications: With Play, Akka, and Reactive Streams by Manuel Bernhardt

Reactive Web Applications: With Play, Akka, and Reactive Streams by Manuel Bernhardt

Author:Manuel Bernhardt
Language: eng
Format: mobi, epub
Publisher: Manning Publications
Published: 2016-07-13T20:18:15.216000+00:00


Dealing with unhandled messages

You can log any unhandled messages in an actor by overriding the unhandled method, like so:

class SomeActor extends Actor with ActorLogging {

override def unhandled(message: Any): Unit = {

log.warn(

"Unhandled message {} message from {}", message, sender()

)

super.unhandled(message)

}

}

We’ll start with a minimal protocol to model the most important interactions:

Between client and StatisticsProvider regarding the request to compute the reach of a tweet

Between StatisticsProvider and UserFollowersCounter

Between StatisticsProvider and Storage



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.