Microservices are so useful because they can be connected in many different ways with other services, thus creating new value. However, as there is no standard for microservices, there is not a single way to connect to them.
This means that most of the time when we want to use a particular microservice, we have to learn how to interact with it. The good news is that although it is possible to implement any communication method in microservices, there are a few popular approaches that most microservices follow.
How to connect microservices is just one of the relevant questions when designing architecture around them. The other is what to connect with and where. This is where service discovery comes into play. With service discovery, we let the microservices use automated means of discovering and connecting to other services within our application.
These three questions, how, what, and where, will be our next topic. We will introduce some of the most popular methods...