Microservice and Containerization Patterns > Interchange Patterns > Microservice Instance Registration
Microservice Instance Registration (Erl, Naserpour)
How can microservice consumers locate and access available microservice instances at runtime?
A microservice instance registry is implemented. This registry is essentially a database of active and currently running microservice instances, their APIs and locations. When a new microservice is instantiated, that instance is registered in the microservice instance registry.
Microservice B queries the microservice instance registry to determine whether an instance of Microservice A is active and available.
This pattern can be applied by enabling microservice instances to be discovered and by further enabling the self-registration and semi-automated registration of microservice instances, as explained in the complete pattern description.