0
0
Azurecloud~10 mins

High availability design patterns in Azure - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - High availability design patterns
Start: User Request
Load Balancer receives request
Check service instance health
Route to
Healthy
Instance
Retry or Failover
Process Request
Send Response
End
User requests go through a load balancer that checks service health and routes to healthy instances, retrying or failing over if needed to keep services available.
Execution Sample
Azure
1. User sends request
2. Load balancer checks instance health
3. Routes to healthy instance
4. Instance processes request
5. Response sent back
This flow shows how a request is handled to ensure high availability by routing only to healthy service instances.
Process Table
StepActionInstance Health CheckRouting DecisionResult
1User sends requestN/AN/ARequest received by load balancer
2Load balancer checks instance AHealthyRoute to instance ARequest sent to instance A
3Instance A processes requestN/AN/ARequest processed successfully
4Response sent back to userN/AN/AUser receives response
5Next request arrivesInstance A unhealthyRoute to instance BRequest sent to instance B
6Instance B processes requestN/AN/ARequest processed successfully
7Response sent back to userN/AN/AUser receives response
8Instance B unhealthyFailover to instance CRoute to instance CRequest sent to instance C
9Instance C processes requestN/AN/ARequest processed successfully
10Response sent back to userN/AN/AUser receives response
11No healthy instancesAll unhealthyFail request or queueRequest fails or delayed
12EndN/AN/AHigh availability maintained by routing or failover
💡 Execution stops when request is successfully processed or no healthy instances remain.
Status Tracker
VariableStartAfter Step 2After Step 5After Step 8Final
Instance A HealthHealthyHealthyUnhealthyUnhealthyUnhealthy
Instance B HealthHealthyHealthyHealthyUnhealthyUnhealthy
Instance C HealthHealthyHealthyHealthyHealthyHealthy
Current Routed InstanceNoneInstance AInstance BInstance CNone or last healthy
Request StatusPendingRoutedRoutedRoutedCompleted or Failed
Key Moments - 3 Insights
Why does the load balancer route to a different instance after step 5?
Because instance A became unhealthy at step 5, the load balancer detects this and routes the request to instance B to maintain availability, as shown in execution_table row 5.
What happens if all instances are unhealthy?
When all instances are unhealthy, as in step 11, the system cannot route requests successfully, so requests fail or are delayed, ensuring no routing to unhealthy instances, as shown in execution_table row 11.
How does the system ensure the user still gets a response if one instance fails?
The load balancer checks health and routes to another healthy instance automatically, retrying the request, as seen in steps 5 to 10 in the execution_table.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, at which step does the load balancer first route to instance B?
AStep 2
BStep 5
CStep 8
DStep 11
💡 Hint
Check the Routing Decision column in execution_table rows around step 5.
According to variable_tracker, what is the health status of instance C after step 8?
AHealthy
BUnhealthy
CUnknown
DPending
💡 Hint
Look at the 'Instance C Health' row and the 'After Step 8' column in variable_tracker.
If instance A remained healthy, how would the routing change in the execution_table?
ARequests would fail at step 11
BRequests would route to instance B first
CRequests would always route to instance A
DLoad balancer would route randomly
💡 Hint
Refer to the routing decisions in execution_table when instance A is healthy.
Concept Snapshot
High availability means keeping services running without interruption.
Use load balancers to check instance health.
Route requests only to healthy instances.
If one fails, failover to another.
If none healthy, requests fail or queue.
This pattern keeps apps available to users.
Full Transcript
High availability design patterns in Azure use load balancers to manage user requests. When a user sends a request, the load balancer checks which service instances are healthy. It routes the request only to healthy instances. If an instance becomes unhealthy, the load balancer redirects requests to other healthy instances to keep the service running. If all instances are unhealthy, requests may fail or be delayed. This ensures users get responses reliably by avoiding failed instances and using failover automatically.