Please refer to Appendix A, Preparing the Environment and Running Code Samples, if you still have to install Java and/or SBT.
We will run our application in the terminal the same way we did in Chapter 11, An Introduction to the Akka and Actor Models and Chapter 12, Building Reactive Applications with Akka Typed, using two separate terminal sessions for Store and BakeryApp using the following commands:
- sbt "runMain ch13.BakeryApp"
- sbt "runMain ch13.Store"
We prefer this method because of its conciseness. If you're about to run the app in interactive mode, please consult Chapter 11, An Introduction to the Akka and Actor Models, for a detailed explanation of this approach.
In our examples, we expect the remote Store app to be available at the moment we start the main Bakery stream. Because of this, we have to start the Store first...