Running the application

Now, we have all of our services built together and can run the project as a whole using the runAll command as before. We also need to have an Akka-HTTP example from the previous chapter running and have enough inventory so that the boy can get some groceries from it:

The previous screenshot shows two Terminal windows: on the right the Akka HTTP shop from Chapter 14 is running and on the left the runAll command is ready to be executed. The runAll command takes some time to start all of the subsystems and produces a lot of output in the console.

At the moment of this writing the processing pipeline stopped just before returning baked cookies to the manager. We reported this issue as a Lagom bug (https://github.com/lagom/lagom/issues/1616) but unfortunately got no feedback from Lagom team yet. We left the example as it is with the hope that the issue will be fixed in upcoming version of the framework. In the unlikely case if this is not a but we will update the example immediately after getting corresponding reaction to the bug report.

After everything settles down, we can call our Manager service with an http client from another window:

curl -X "POST" "http://localhost:58866/bake/10"

This should produce output similar to the following in the Lagom Terminal:

Looks like it is time to enjoy the cookies! Well, not quite yet!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.97.170