Chapter 7. Software Transactional Memory

In this chapter, we shall cover the transactional model applicable to the actors. We will see the various Akka constructs provided for the transactional concepts (begin/commit/rollback semantics).

We will cover the following topics:

  • Basics of transaction management and examine what is software transactional memory
  • Explore the Akka constructs provided for STM — transactors and agents

Transaction management

Transactions provide a mechanism to manage the application access to data (read or write) in a multiuser environment. In a multiuser environment, concurrent access to the data needs to be controlled to ensure data integrity. The transaction is designated as a unit of work that contains a sequence of reads ...

Get Akka Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.