Book Image

Mastering Akka

By : Christian Baxter
Book Image

Mastering Akka

By: Christian Baxter

Overview of this book

For a programmer, writing multi-threaded applications is critical as it is important to break large tasks into smaller ones and run them simultaneously. Akka is a distributed computing toolkit that uses the abstraction of the Actor model, enabling developers to build correct, concurrent, and distributed applications using Java and Scala with ease. The book begins with a quick introduction that simplifies concurrent programming with actors. We then proceed to master all aspects of domain-driven design. We’ll teach you how to scale out with Akka Remoting/Clustering. Finally, we introduce Conductr as a means to deploy to and manage microservices across a cluster.
Table of Contents (17 chapters)
Mastering Akka
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface

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.