O'Reilly logo

Akka Essentials by Munish K. Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transactor

In the previous section, we saw the usage of coordinated transactions in untyped actors. Now, it is possible to have scenarios where one operation participates in a transaction if applicable; otherwise, it can perform independently of the transaction as well.

Akka transactors combine the Actor Model and STM to provide the best of both worlds, allowing you to write transactional, asynchronous, event-based message flow applications, and gives you composed ATOMIC, arbitrary, deep message flows.

For example, in the money transfer example, the debit/credit operations for the account can be used outside the client-initiated transactions. So when the user just withdraws money from his account or deposits money in the account, the update to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required