Skip to content

Latest commit

 

History

History
 
 

state-stored-system1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

State stored system

State stored aggregate is using a Decider from domain module to handle commands and produce new state. In order to handle the command, aggregate needs to fetch the current state via fetchState suspending function first. All you have to do is to implement this simple method.

New state will be stored via save() suspending function. All you have to do, is to implement this simple method.

These two functions are producing side effects (persistence), and they are deliberately separated from the decider ( pure domain logic).

aggregate_ss image

Running the application locally

mvn clean install
cd application/state-stored-system1/
mvn spring-boot:run

References and further reading


Created with ❤️ by Fraktalio