FastAPI Microservice Patterns: Service discovery in container orchestration platforms

What’s the problem?

To enable communication between services based on synchronous communication mechanisms like REST or gRPC the services need to know each others location (IP address and port). But how can a client (service which depends on an endpoint of another service) discover the location of the service it depends on?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store