Skip to content
Ameen Abozaid
Planned lessonMID-036-L04

Load-balancing strategies

  • Lesson 4 of 5
  • Mid-level
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

choose a balancing strategy and understand health-driven routing.

Planned topics

  • Round robin: simple and even for similar requests.
  • Least connections: better when request durations vary.
  • Random, or power of two choices: cheap and effective at scale.
  • Sticky sessions: pins a client to an instance; avoid by keeping services stateless.
  • Health checks: remove failed instances. In-flight requests to a dying instance can still fail, so use graceful shutdown and connection draining.
Draft outline details

Demonstration

StrategyGood whenWatch for
Round robinuniform requestslong requests pile up
Least connectionsvaried durationsneeds connection tracking
Stickystateful legacyuneven load, failover loss

Check your understanding

What limits errors during a deployment?

Show answer

Readiness-based routing plus graceful shutdown that drains in-flight requests.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.