This topic provides an overview of listeners. After you create a Classic Load Balancer (CLB) instance, you must configure at least one listener for the CLB instance. Listeners define how requests are forwarded to backend servers. Listeners listen for connection requests and forward the requests to backend servers based on the scheduling algorithms specified in forwarding rules. CLB listeners support the following protocols: TCP, UDP, HTTP, and HTTPS.
Supported listeners and use scenarios
CLB supports Layer 4 and Layer 7 listeners. Layer 4 listeners use the TCP or UDP protocol, and Layer 7 listeners use the HTTP or HTTPS protocol. Choose a type of listener based on your business requirements.
Type | Protocol | Description | Scenario |
Layer 4 listener | TCP |
|
For more information, see Add a TCP listener. |
UDP |
| Scenarios that require high time efficiency but can tolerate relatively lower reliability, such as video conferencing and real-time push of financial news and information. For more information, see Add a UDP listener. | |
Layer 7 listener | HTTP |
| Applications that need to identify data content, such as web applications and mobile games. For more information, see Add an HTTP listener. |
HTTPS |
| HTTP applications that require encrypted transmission. For more information, see Add an HTTPS listener. |
References
CLB supports basic load balancing at Layer 4 and Layer 7. CLB listeners support the TCP, UDP, HTTP, and HTTPS protocols.
Alibaba Cloud has released a next-generation Layer 7 load balancer Application Load Balancer (ALB), and a next-generation Layer 4 load balancer Network Load Balancer (NLB). The next-generation load balancers support higher performance than CLB. ALB supports load balancing at Layer 7, advanced forwarding rules, and the QUIC protocol. NLB supports higher performance than CLB, and supports automatic scaling. We recommend that you use ALB and NLB.
For more information about ALB, NLB, and CLB, see What is SLB?
For more information about ALB and NLB, see What is ALB? and What is NLB?