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

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

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