Akka

Akka

To create actors:
  1. Create ActorSystem
  2. Create an actor which extends untyped actor
  3. Create ActorRef which has System.actorOf step 2 actor
  4. Tell (fire & forget) or Ask ActorRef messages
  • Order of messages are retained per sender and receiver
  • Supervisor detects and responds to the failures of actors. This means if an actor crashes, a notification will be sent to its supervisor, which can decide what to do about it. This provides separation of processing and error handling