Interconnection · Lesson 13

How can a service share requests across servers?

A load balancer receives requests for a service and selects a backend server to handle each one. Health checks and distribution rules help the service remain responsive when demand or server availability changes.

One service, many backends

A front door can distribute the work.

A load balancer presents a service endpoint and forwards requests to backend servers. The client usually does not need to know which backend answered.

Distribution can use several strategies, such as round robin, least connections, weights, or session-aware rules. A health check helps prevent new requests from being sent to a backend that is not ready.

Load balancing is a service decision.Anycast can help route a client toward a site. A load balancer can then choose a healthy backend within that site.

Build the model

Four balancing pieces

01

Front door

The endpoint that receives requests for the service.

02

Backend pool

The servers available to handle requests.

03

Health check

A test that identifies whether a backend can receive work.

04

Distribution rule

The policy used to choose among healthy backends.

Mini experiment

Choose a backend

Select the pool state and see which backend should receive the next request.

POOLBackend A selected

The next request is sent to Backend A because the round-robin turn is ready and both servers are healthy.

A healthy pool can share requests across both backends.

Knowledge check

Test your load balancing model

Answer five questions. The answer order changes each time.

0 / 5