Cloud endpoints and load balancing
Two paths, not one
A cloud load balancer presents a stable frontend and selects a backend from a group of eligible targets. A private endpoint provides a private address for access to a particular service without granting general network connectivity to the service owner. DNS maps a name to the intended frontend or endpoint. A DNS answer is not proof of network reachability or application authorization. In the shop model, users connect to the public frontend and app servers access an internal object service through a private endpoint. No real DNS query or connection is needed.
Follow a proxy request
The diagram uses documentation addresses and fictional DNS names. The client connects with HTTPS to the frontend, which terminates TLS and makes a separate backend TLS connection to port 8443 in this example. The backend policy permits the proxy identity on 8443, not arbitrary clients. A probe uses TCP 8080 and path /ready over HTTP. Its permissions must be checked independently from application traffic. The backend sends its response to the proxy, which responds to the client. A passthrough Layer 4 balancer instead forwards transport traffic without this HTTP proxy behavior; source-address and return-path handling depend on implementation.
client 192.0.2.50 -> shop.example 198.51.100.10:443 -> proxyproxy -> A 10.60.2.10:8443 or B 10.60.2.11:8443probe -> A/B :8080 /readyapp -> objects.shop.example 10.60.4.10:443 -> private serviceHealth is evidence with a scope
In the toy model, only registered targets with a successful probe are eligible. If A is healthy and B fails its probe because port 8080 is blocked, select A even if B still serves port 8443. If both are healthy but B has a blocked application port, B remains probe-eligible and its user requests can fail. The model returns no eligible target when both probes fail; do not generalize this to real products. For example, AWS Application Load Balancer documents fail-open behavior when all registered targets in enabled zones are unhealthy. Probe thresholds, startup behavior, draining and failover must be checked for the chosen product.
Private DNS and service authorization
Use a private DNS zone to resolve objects.shop.example to 10.60.4.10 for authorized internal clients in this fictional design. The endpoint must be accepted by the service, reachable, and allowed by applicable policy; TLS identity and application credentials still matter. AWS PrivateLink interface endpoints, Azure Private Link private endpoints and Google Private Service Connect endpoints provide related service-access patterns, not interchangeable APIs. A service endpoint is not always an interface with a private IP; AWS gateway endpoints and Azure service endpoints have different semantics. Do not assume private DNS configuration automatically disables a public service endpoint. Verify the service public-access settings separately.
Practice: isolate the failure
Suppose DNS returns the correct frontend address, both probes succeed, and only requests to B fail. Compare the backend application listener, rule and TLS configuration with A before changing DNS or widening rules. If the private endpoint name returns the wrong address, inspect the zone link and resolver path first. A healthy probe, successful DNS response and accepted endpoint are three separate observations.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud endpoints and load balancing Quiz
Reason about cloud routing, service paths and fictional costs.
What is the backend application port in the model?
B fails the probe but serves its application port. Toy eligibility?
A probe succeeds but its backend application port is blocked. What follows?
Private DNS returns the endpoint IP. What else is required?
Both toy probes fail. What can we infer about all real load balancers?