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

Refactoring retrospective


Throughout the previous chapters, we chipped away at the issues outlined in Chapter 1, Building a Better Reactive App, in an effort to build a more scalable and flexible set of application components. With each successive refactoring, which involved a new tool from the Akka platform, we helped improve the scalability profile of the bookstore app. The main goal was to end up with independent service components, which was finally achieved in Chapter 9, Managing Deployments with ConductR, with the introduction of ConductR. With our work now complete, it makes sense to go over what we did in each chapter, and how that contributed to the final set of components that we have now.

Coding better actors

The work we did in Chapter 2, Simplifying Concurrent Programming with Actors, wasn't directly related to solving scalability concerns, but it was important nonetheless. In this chapter, you learned how to identify poorly coded actors, ones that were too dependent on nested...