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.
It’s no secret that Kotlin is the new hotness for Android development, and for good reason. The language is more concise, handles NPEs safely, and offers features such as Higher Order Functions that have previously not been available on the platform, which is stuck on Java…
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…
At Blockchain, we have many mobile users in bandwidth constrained environments such as developing countries. As such keeping the app small and lightweight is a priority for the Android team. Smaller app sizes increase both installs and conversion rates —…
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…
Blockchain is the world’s leading software platform for digital assets. Our engineering team builds and operates the Blockchain Wallet, Explorer, and APIs, with engineers in London, New York, and the Bay Area.