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
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 ...