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 homework


The homework for this chapter will be similar in scope to what we did in the Refactoring homework section of Chapter 3, Curing Anemic Models with Domain-Driven Design, where you will finish converting the remaining modules of credit processing and user management over to event sourcing. Make your code changes in the code within the -incomplete bookstore app. When you are done, you can check out my fully converted code in the -complete code-base folder.

I've already added in the data model .proto files for each of these two modules and the generated binding classes. This is so you won't have to go through the trouble of installing the protoc compiler. Also, keep in mind that you won't be able to handle the multiuser lookup functionality in the CustomerRelationsManager yet, so just comment that functionality out for now. You'll get that code working again in the Refactoring homework section, in Chapter 5, Separating Concerns with CQRS,.

With the user-management project,...