Experiments
In this lesson, we'll look at a few experiments that can be done with the example we previously looked at.
We'll cover the following
Examine logs #
Try the following experiments in the coding environment given below!
- Start the system and examine the logs of
microservice-order-invoicing and microservice-order-shipping
with
docker logs -f msatom_invoicing_1
respectivelydocker logs -f msatom_shipping_1
. - The microservices log messages when they poll data from the Atom feed, because there are new orders.
- If you start additional instances of a microservice with
docker compose up --scale
, these new instances will collect orders via the Atom feed and log information about them. In doing so, only one instance writes at a time; the other ones ignore the data. - Create orders and notice this behavior based on the log messages.
- Explore the code to find out what the log messages mean and where they are put out.
Get hands-on with 1200+ tech skills courses.