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

Improvements needed for the refactor


We made great strides in this chapter and cleaned up some of the issues mentioned in Chapter 1, Building a Better Reactive App. We have a richer application model now thanks to our DDD approach, which addresses the concerns from the Assessing the application's domain model section, in Chapter 1, Building a Better Reactive App. We also removed that ugly cross-domain transaction for inventory allocation, addressing the concerns from the Avoiding cross-domain transactions section, in Chapter 1, Building a Better Reactive App. Even though we addressed some concerns, there are a few things with the current state of the code that are worth mentioning as areas that need improvement.

For starters, there's a lot of hand-rolled lifecycle related code in EntityActor that I feel can go away if it is handled by a framework, preferably Akka. Also, I sort of feel like I reinvented EJB there, and that's not really a good feeling. Thankfully, Akka Persistence, and its...