May 2017
Intermediate to advanced
414 pages
13h
English
Persistent actors recover the state based on their persistence ID. This ID needs to unique for a given persistent actor and within the data store. It is required to ensure the consistency of the journal when we persist events and when we recover. Each time a persistent actor is created, Akka persistence checks the journal and the snapshot stores for events and snapshots, respectively. The default behavior is to apply the latest snapshot and replay the missing events afterward. However, this behavior can be modified to our needs, as we will see in this recipe. In this recipe, we will show and explain what the different recovery strategies in Akka persistence are.
Read now
Unlock full access