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

Playing around with the new application


At this point, we have two modules completely refactored, so it's a good time to take the app for a test drive and check out how the newly added query support works. To get the app up-and-running, first build it via docker-build.sh and then start it up via launch.sh. You should create a new BookstoreUser and then a new book via the REST API, being sure to add an inventory to it. Refer to the Interacting with the Book endpoint section from Chapter 1, Building a Better Reactive App, if you need help remembering the endpoint calls to make. Then, using the ID of the newly created book, craft up the correct JSON to create a new SalesOrder and then use the REST API to do that.

With those three entities created, you can start to use the query-API calls. The API stayed the same in relation to the query calls, so you can use the instructions from Chapter 1, Building a Better Reactive App, to run queries. Try looking up books by author and then try looking up...