Demo microservices setup

We will use two microservices to demonstrate concepts in this chapter:

  • Microservice A: A simple microservice exposing two services--one to retrieve a message from the configuration file and another random service providing a list of random numbers.
  • Service consumer microservice: A simple microservice exposing a simple calculation service called the add service. The add service consumes the random service from Microservice A and adds the numbers up.

The following figure shows the relationship between the microservices and the services that are exposed:

Let's quickly set up these microservices.

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.