Dev Time: Cope with Failure - Actor Supervision in Akka
Cope with Failure - Actor Supervision in Akka A while ago I showed an example on how to use Akka to scale a simple application with multiple threads . Tasks can be split into several actors that communicate via immutable messages. State is encapsulated and each actor can be scaled independently. While implementing an actor you don't have to take care of low level building blocks like Threads and synchronization so it is far more easy to reason about the application. Besides these obvious benefits, fault tolerance is another important aspect. In this post I'd like to show you how you can leverage some of Akkas characteristics to make our example more robust. The Application To recap, we are building a simple web site crawler in Java to index pages in Lucene. The full code of the examples is available on GitHub . We are using three actors: one which carries the information on the pages to be visited and visited already,Read full article from Dev Time: Cope with Failure - Actor Supervision in Akka
No comments:
Post a Comment