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

Preparing your services for ConductR


Once you have a decent understanding of what ConductR can do and how you can interact with it via the CLI, it's time to start getting you code ready to deploy into a ConductR. There's not a ton of code changes you will need to make to build out ConductR bundles. You will only need to make a couple of additions to a regular sbt project and you are in business. I'll detail these changes over the next few sections and then we can dive into getting the bookstore application up and running on ConductR.

Bundling your components for deployment

If you want to deploy your application components into ConductR, then you will need to produce a bundle for them. One of the requirements for all bundles is that they contain a bundle.conf file. This file is essentially a manifest for your bundle, informing ConductR of the deployment requirements, such as memory, CPUs, and so on, as well as what services this bundle publishes.

When it comes to creating this necessary file...