Azure Load Balancer vs Application Gateway: Who Should Terminate the Connection?

Updated on December 2, 20263

Use Azure Load Balancer to distribute TCP or UDP flows when the backend should handle the application protocol. Use Application Gateway’s HTTP listener when the frontend must read a hostname or path, terminate HTTPS centrally or apply an HTTP web application firewall policy. Application Gateway also supports TCP/TLS proxying. For TCP workloads the deciding question is often who owns the connection, not just which port is open.

Write down what the frontend must know

Suppose a delivery company operates a web dashboard, a UDP location receiver and a TLS-based vendor feed. All three send traffic to multiple servers. That common requirement does not make them the same load-balancing problem.

Service Decision the frontend must make First choice to evaluate
Dispatcher dashboard on HTTPS Send /maps to one pool and /jobs to another Application Gateway HTTP routing with frontend TLS termination.
UDP vehicle updates Distribute datagrams by flow without interpreting a web request Azure Load Balancer with a UDP rule and a suitable health probe.
Vendor TCP feed encrypted to the receiving server Distribute connections while the backend owns the TLS handshake Load Balancer, with certificates and connection handling on the receivers.
Non-HTTP TLS feed that requires a central certificate Accept a client TLS session at a proxy, then connect to a backend Evaluate Application Gateway’s TLS proxy settings and supported constraints.

Port 443 does not tell you what the client speaks

A browser sending HTTPS and a vendor sending a proprietary TLS protocol can both use port 443. HTTP path matching is meaningful only for the former. With Load Balancer, the backend receives traffic and can terminate TLS itself. With an HTTPS gateway listener, the client and gateway establish one TLS session. The gateway can initiate another HTTPS session to the backend. With the TCP/TLS proxy capability, Application Gateway is still a reverse proxy with distinct frontend and backend connections.

This matters when a vendor pins a certificate or the application depends on the client’s original network identity. Document what the backend must see and what the chosen listener actually passes. An HTTP application can consume trusted forwarded headers when configured correctly. A proprietary binary protocol cannot suddenly read HTTP headers. Review the documented client-IP mechanism for the exact proxy mode and confirm that the backend supports it.

Compare two failure signals

A successful TCP handshake tells you that something accepted a connection. It does not show that a dispatcher can load the map. Conversely, a successful GET on the dashboard’s readiness URL cannot validate that a vehicle’s UDP packet was decoded or acknowledged. Give each service an application-level success condition as well as a backend health check.

For the example deployment, record one fresh dashboard request in the correct pool, one disposable device update processed by the receiver, and one vendor handshake validated against its expected certificate. Then mark a backend unavailable in the test environment and repeat with a fresh client. Observe an existing long-lived connection separately; its behavior matters if drivers stay connected for an entire shift.

Which service should go in the architecture diagram?

Label each listener with its protocol, the first component allowed to decrypt it, the information used to choose a backend, and the identity the backend needs. When the rule can be expressed using network flows alone, Load Balancer usually gives the simpler design. When the rule needs HTTP content, Application Gateway owns a concrete job. For TCP proxying, choose it only when the second connection or central TLS policy serves an explicit requirement.

Sources and further reading

About the Author: Jian Brant

Founder Jian Brant
Jian Brant is a technology professional and founder of Punch5Media, with extensive experience in web development, enterprise IT, business analysis and digital transformation. Drawing on his experience across public and private sector organizations, he delivers thoroughly researched, practical insights into technology, cybersecurity, software and digital business.

Share this article

Explore technology

Practical, independent technology guides and explanations.

Browse all articles →

Recent articles

Our editorial approach

Clear explanations, practical guidance and responsible research.

Editorial standards →