The Akka Event Stream provides a pub/sub style API for actors. Actors subscribe to ‘channels’ on the Event Stream; the event is placed in the Actor’s mailbox if the subscription type matches the message.
By now, you have played around with creating basic Actors and Actor hierarchies. It’s important to note that messages are delivered to Actors sequentially; this means no more than one dispatcher thread will ever call the Actor.
The Akka Dispatcher defines the wiring of an Actor within an Actor System, such as how the Actor’s mailbox is configured and what implementation of the java.util.concurrent.ExecutorService to use.
In Part 1, we learned how to create a very simple Actor that prints out the String message it receives. An important concept to understand is that Actors are hierarchical, which means that any Actor created is a child of another Actor. This hierarchy gives Parent…
One of the many projects currently underway at Blockchain involves building a real-time platform that runs 24/7, capable of processing thousands of messages a second running, and with an API scaling to millions of requests. There are certainly many ways to approach…