From the course: Microservices: Design Patterns

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Service discovery

Service discovery

- As a microservices architecture grows, so does the complexity of finding the appropriate services that provide the models and behaviors that you need. Enter into the picture Service Discovery. Service discovery can save you a lot of time, especially in a dynamic runtime where service locations can vary based on scaling events or geographic location. The problem we are trying to solve here is very simply, what service do I need to call in order to perform some body of work? When you only have a small set of microservices, that may seem very manageable within your configuration. However, once you go to hundreds or even thousands within a single environment? It's not so manageable. The concept is actually quite simple as well. A central location exists that allows for discovery of services. As a new service comes online, it advertises itself and what models or behaviors it exposes to the rest of the system. It does this by in introspection of its URI, essentially saying, "At location…

Contents