Help Center/ Elastic Load Balance/ User Guide (ME-Abu Dhabi Region)/ FAQs/ Listener/ What Are the Relationships Between Load Balancing Algorithms and Sticky Session Types?
Updated on 2022-01-25 GMT+08:00

What Are the Relationships Between Load Balancing Algorithms and Sticky Session Types?

Table 1 Sticky sessions supported by load balancers

Load Balancing Algorithm

Sticky Session Type

Layer 4 (TCP/UDP)

Layer 7 (HTTP/HTTPS)

Weighted round robin

Source IP address

Supported

Not supported

Load balancer cookie

N/A

Supported

Application cookie

N/A

Supported

Weighted least connections

Source IP address

Not supported

Not supported

Load balancer cookie

N/A

Not supported

Application cookie

N/A

Not supported

Source IP hash

Source IP address

Supported

Supported

Load balancer cookie

N/A

Not supported

Application cookie

N/A

Not supported

Generally, the round robin algorithm is recommended. Sticky sessions at Layer 4 use source IP addresses to main sessions, and sticky sessions at Layer 7 use load balancer cookies.