Hopefully, this chapter has served as a nice refresher for you on Akka actors. At this point, you should understand what Akka actors can do and how you can use them to write safe concurrent code. You should now have a good understanding of the FSM trait, and how you can employ it to build complex workflow-like processes with your actors. Lastly, you explored the different levels of automated testing, and how you can use things such as TestProbe
and TestActorRef
to test your actors.
Now that we have gotten this refresher out of the way, it is time to start thinking about bigger refactors to the bookstore app. In the next chapter, we will be talking about DDD and how you can use that approach to model your code in a way that more closely relates to the business domain(s) you're working in. So gear up and get ready to change the way you think about modeling software.