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

Testing your Akka actors


If you've ever developed in an agile environment, then you should be aware of the importance of automated tests. Continuous, frequent deployment is a big part of agile. It's how you get the feedback necessary to iterate on and improve features.

In the beginning, when your feature set is small, you might be able to get away with manual, full-regression test runs before your deployments. However, as your feature set grows, so does the amount of time required to fully test that feature set. Eventually, you will hit a point where these manual regression runs become an impediment to your ability to deploy frequently, which hurts your agility.

Agile is predicated to have automated test coverage. These automated test runs will shorten your regression testing cycles from potentially days down to tens of minutes (or hours). This will allow you to deploy more frequently and get that feedback that is so important in the agile world. Simply put, if you don't have automated test...