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

Building and deploying the bookstore bundles


At this point, we have all the necessary code changes in place to run the bookstore services within ConductR. Now, all we have to do is build and deploy the bundles using sbt and the ConductR CLI via sbt-conductr. The process will be the same for each module, so I will only describe it once—for inventory-management—and then you can repeat it across the other three modules. Before doing this however, we want to get the containers for Cassandra and Elasticsearch up and running. To do that, open up a terminal window to the root of the bookstore-app-complete folder from the chapter9 code distribution and run the following command:

./launchDataStores.sh

Once you have those two containers up and running, you need to start up the ConductR sandbox so that we can deploy our bundles into it. As a reminder, the command to start up the sandbox is as follows:

sandbox run <sandbox_version> --nr-of-containers 3

Just be sure to replace <sandbox_version...