Summary
In this chapter, we learned how we can leverage both Akka Remoting and Akka Clustering to scale our applications out, adding more machines (and thus more CPU power) to do the work for us. Using Akka Clustering, and specifically Cluster Sharding and Cluster Singleton, we were able to close up a couple of loose ends in how our event sourcing and CQRS implementations would scale out. Our application now can be safely scaled out to meet its increased demand.
We're close to being done with the proposed refactors, but one big piece remains. We still have yet to fully break apart our monolith so that each module can be deployed independently. This will be the last step in the complete refactoring of the bookstore app, and something we will wrap up in the next chapter with the introduction of ConductR.