We should consider what our microservice is, and what it is not: the most important thing here is that the service needs to be autonomous. If we create a service that needs other services in order to run, then it is not a microservice.
We shouldn't confuse this with creating a service that requires other services to function. For example, our sales order processing system must have sales orders, and these come from an external source. This is fine because we're not dependent on that external source: if we don't get a list of sales orders, then our service will still run; it just won't do anything.
Let's start by creating our new service!
Remember that what we mean here by service is a process that performs a task: it should not be confused with specific usages of the word service, such as a REST service. What we want is simply...