Differences Between Shared and Dedicated Load Balancers
Each type of load balancer has their advantages. Select the appropriate type based on your requirements.
- Classic load balancers can handle simple, light-traffic web services.
- Shared load balancers are suitable for web services with heavy traffic. This type of load balancer is capable of forwarding requests based on domain names or URLs, to meet your needs more flexibly. Resources are shared among load balancers, and the performance of a load balancer is affected by other load balancers. Shared load balancers were previously named enhanced load balancers.
- Dedicated load balancers allow you to have exclusive use of resources, so that the performance of a dedicated load balancer is not affected by other load balancers. In addition, there are a wide range of specifications available for selection.
Dedicated load balancers provide more powerful forwarding performance and support cross-AZ deployment and IPv4/IPv6 dual stack. Table 1 compares the features supported by the three types of load balancers. √ indicates that an item is supported, and — indicates that an item is not supported.
| Feature | Description | Classic | Shared | Dedicated |
|---|---|---|---|---|
| Load balancing over public or private network |
| √ | √ | √ |
| Layer 4 and Layer 7 load balancing |
| √ (UDP is not supported for private network load balancers) | √ | √ |
| Load balancing algorithm | Weighted round robin, weighted least connections, and source IP hash Classic load balancers: round robin, least connections, and source IP hash | √ | √ | √ |
| Sticky session | Sticky sessions can identify the association between the client and backend server. Once this feature is enabled, requests from the same client are routed to the same backend server during the session. | √ | √ | √ |
| WebSocket | WebSocket is a new HTML5 protocol that provides full-duplex communication between the browser and the server. WebSocket saves server resources and bandwidth, and enables real-time communication. | √ | √ | √ |
| Forwarding routes based on domain names or URLs | ELB allows you to add forwarding policies to forward requests to different backend server groups based on the domain names or URLs specified in the forwarding policies. This is only supported for HTTP or HTTPS listeners. | — | √ | √ |
| HTTP/2 | Hypertext Transfer Protocol 2.0 (HTTP/2) is a new version of the HTTP protocol. HTTP/2 is compatible with HTTP/1.X and provides improved performance and security. You can use HTTP/2 only with HTTPS listeners. | — | √ | √ |
| Adding Elastic Cloud Servers (ECSs) as backend servers | You can add ECSs to backend server groups to handle requests from load balancers. | √ | √ | √ |
| Access control (whitelist) | You can add a whitelist and specify the IP addresses that can access a listener. | — | √ | √ |
| Standard OpenStack APIs | OpenStack native APIs are supported and are compatible with self-developed APIs. | — | √ | √ |
| Adding Bare Metal Servers (BMSs) as backend servers | BMSs can also be used as backend servers to handle requests from load balancers. | — | √ | √ |
| SNI for certificates | Server Name Indication (SNI) is an extension to Transport Layer Security (TLS) and is used in cases that a server uses multiple domain names and certificates. After SNI is enabled, certificates corresponding to the domain names are required. | — | √ | √ |
| SSL protocol and SSL encryption algorithms | Load balancers use SSL to receive requests from clients. A variety of cipher suites are supported, which are categorized into default suite, extended suite, and strict suite. | √ | √ | √ |
| Access logging | ELB can work with LTS to keep detailed logs about HTTP or HTTPS requests, including the request time, client IP address, request path, and server response. | — | √ | √ |
| Server weight | Elastic load balancers provide two algorithms that can route requests based on server weights: weighted round robin and weighted least connections. | — | √ | √ |
| Modifying certificate content | After a certificate is created, you can modify its content. | — | √ | √ |
| Mutual authentication | The identities of both parties are authenticated to ensure security. Therefore, you need to deploy both the server certificate and client certificate. You can use HTTP/2 only with HTTPS listeners. | — | √ | √ |
| HTTP redirection | HTTP traffic is redirected to HTTPS. When the client sends an HTTP request, the backend server returns an HTTPS response. Currently, only elastic load balancers support this feature. | — | √ | √ |
| Passing load balancer EIPs to backend servers | When you add an HTTPS or HTTP listener, you can store the EIP bound to each load balancer in the HTTP header and pass it to backend servers. | — | √ | √ |
| Support for IPv6 | Load balancers can route requests from IPv6 clients. | — | — | √ |
| Cross-AZ deployment | You can create a load balancer in multiple AZs. Each AZ selects an optimal path to process requests. In addition, the AZs back up each other, improving service processing efficiency and reliability. | — | — | √ |
| Multiple specifications | Dedicated load balancers provide multiple specifications. You can select appropriate specifications based on your business needs. | — | — | √ |
Last Article: Differences Between Classic and Shared Load Balancers
Next Article: Specifications of Dedicated Load Balancers
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.