Akka in Action, Second Edition MEAP V13 by copyright-2023-manning-publications.html

Akka in Action, Second Edition MEAP V13 by copyright-2023-manning-publications.html

Author:copyright-2023-manning-publications.html
Language: eng
Format: epub, pdf


Effect.persist([Event]).thenRun(//**side effect**//). #A

When the event has been successfully persisted by the commandHandler, the eventHandler is executed. The reason for this is that you don't want to change the state of the actor if the event has not been validated by the Command Handler. This has to do with the fact that the saved events will be processed again by the event handler when the persistent actor is restarted on recovery. Only what is saved can determine the current state of the actor.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.