Up until now, we have implemented our bakery by relying on basic Akka concepts. It is time to deepen our knowledge and start to use higher level concepts.
Advanced topics
Akka FSM
The Manager pushes the cookie-making process forward by coordinating all other inhabitants of the bakery. It does so by taking the messages representing job results from one actor and passing them further along to an appropriate successor. It is important that this process is consequent, that is, it should be impossible to make raw cookies at the moment since we only have a shopping list and no dough. We'll represent this behavior as a state machine.
An FSM is an abstraction defined by a set of states the machine can be in. For each state,...