January 2019
Intermediate to advanced
520 pages
14h 32m
English
To develop a microservice using actors, you should split your service into tasks that solves different kinds of work. For example, you can use a separate actor for every incoming connection or database interaction, and even as a supervisor to control other actors. Every actor is an asynchronous task that is executed in a reactor.
The benefits of this approach are as follows:
One important benefit of using actors is reliability, because every actor can be failed and respawned, so you don't need a long recovery code to handle failures. It doesn't mean your code can call the panic! macro everywhere, but this ...
Read now
Unlock full access