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


The bookstore application changed quite a bit in this chapter as we introduced DDD to the code. We have an application model now that better represents the domain where we do our business. We have also shifted our focus more onto entities and aggregates now, as we moved the core business logic into those classes as part of the refactor. Lastly, we removed that nasty cross-domain transaction, going with an event driven, two-part flow to handle inventory allocation for a sales order.

The changes we made here are important in the big picture of building a more scalable and flexible application. There's more to do though, and we'll start right in on some of those changes in the next chapter when we introduce event sourcing as a means of persistence. This is a big change to how and what you persist for an entity, so come with an open mind and get ready to rethink the way you handle persistent state.