Pick a depth. Each prompt opens in your AI pre-loaded with the lesson. Click a row to preview the prompt.
Round-robin sounds fair until one backend's GC pause makes it the slowest in the pool — round-robin happily keeps sending it 1/N of traffic anyway. Picking the wrong algorithm means your p99 latency is set by your slowest replica even when 9 out of 10 are healthy.
Configure and inspect different LB algorithms on a managed cloud load balancer.
SourceIP distribution and verify the same client always hits the same backend across 50 sequential requests.# ALB target group attributes — round-robin (default) vs least-outstanding
aws elbv2 modify-target-group-attributes \
--target-group-arn <tg-arn> \
--attributes Key=load_balancing.algorithm.type,Value=least_outstanding_requests
# Verify
aws elbv2 describe-target-group-attributes --target-group-arn <tg-arn> \
--query 'Attributes[?Key==`load_balancing.algorithm.type`]'
# Weighted target groups (canary 90/10)
aws elbv2 modify-listener --listener-arn <l-arn> \
--default-actions '[{"Type":"forward","ForwardConfig":{"TargetGroups":[{"TargetGroupArn":"<v1>","Weight":90},{"TargetGroupArn":"<v2>","Weight":10}]}}]'