Apologies in case this is a basic question. But I have read the documents but it is not very clear and trying to understand how the SLB url sends the request to the correct application incase multiple applications are deployed in that region.
Question:
Suppose I have a application that deployed on Cloudhub and runs on 198.138.37:8082 (worker IP address). My client is useing SLB url say "https://myapp.us-e2.cloudhub.io/api/healthCheck" to make a request to my application. We see that SLB url DNS get converted to the IP address when making a call.
The question is the SLB url IP address is a Load Balancer IP address and not the application IP address. So, how does the request is routed to the correct application? Behind the scene how is the routing happening from SLB to the correct application (in case there are multiple applications deployed on that region)?
Thanks in advance
Edit:
I do understand that every communication in Internet is going to end in the IP.
But the question is
Say I have two application "myapp1" and "myapp2" deployed on US east region (us-e2.cloudhub.io) on port 8082. If I do nslookup for both the application (not mule-worker), both gives me same set of IP addresses which is the Share LB IP address. Now when I call "myapp1" using "https://myapp1.us-e2.cloudhub.io/api/healthCheck". In the background it gets converted to one of the IP address that we got when we did nslookup (correct me if I am wrong). Once it converts to IP (which is same for both "myapp1" and "myapp2") how does the SLB knows/routes the request to correct application "myapp1"?