My app is set up like orchestrator pattern as follows
WebClient --> Orchestrator Service ___Service1
| __ Service2
|__ Service3
|__ServiceN
Where each component service is a container in a pod.
WebClient selects some kind of pipeline to execute to the orchestrator service, orchestrator then depending what the webclient selected has to call one ore more services and merge the results into a single response for the web client.
My question is, before building my containers, what URL/port do I code into my orchestrator service for calling the downstream services? And same for service to service communication.
Say one of my services needs to make a post request to another service like this
this.http.post('https://localhost:44327/api/ner', fd, {
reportProgress: true,
observe:'events'
})
But I don’t know in advance what the URL and port should be inside the Kubernetes cluster of the other pod where the service I want to communicate with resides, or do I?