Understanding the service discovery power
We will create our first microservice with business requirements. We will create a planes
microservice, which will maintain data about company planes, such as characteristics, model, and some other attributes.
The planes
microservice will be used to serve plane characteristics for our second microservice, the flights
microservice. It needs to get some plane information to be able to create a flight, such as the number of seats.
The planes
microservice is an excellent candidate to start with because there is no business-related dependency to be created.
Our planes
microservice will be useful soon. Time to create it. Let's go.
Creating the planes microservice
As we have been doing in the previous chapters, we will use the Spring Initializr for that purpose. The following dependencies should be selected, as shown in the following screenshot:
There are some necessary dependencies. The Stream Binder Rabbit
and Sleuth Stream
dependencies are necessary to enable...