How AWS Keeps Your Application Running When a Server Fails
Learn how AWS services such as EC2, Load Balancer, Auto Scaling, and CloudWatch work together to keep an application available when a server fails.
How AWS Keeps Your Application Running When a Server Fails
What happens if the server running your application suddenly stops working?
AWS provides services that can help detect the failure and keep the application available.
Simple AWS Architecture
A simple setup can look like:
1
2
3
4
5
6
7
8
9
10
11
12
Users
|
v
Load Balancer
|
+--------+--------+
| |
EC2-1 EC2-2
| |
+--------+--------+
|
Database
What happens if EC2-1 fails?
- Load Balancer detects that EC2-1 is unhealthy.
- New traffic is sent to EC2-2.
- Auto Scaling can launch a replacement EC2 instance according to its configuration.
- CloudWatch helps monitor the application and AWS resources.
1
2
3
4
5
6
7
8
9
10
11
12
13
EC2-1 Fails
|
v
Health Check
|
v
Load Balancer
|
v
EC2-2 handles traffic
|
v
Auto Scaling replaces EC2-1
Why is this useful?
Without redundancy, one failed server can make an application unavailable.
Using multiple instances, load balancing, and Auto Scaling helps build a more reliable application.
Conclusion
AWS is not only about running servers. It also provides tools to monitor, scale, and recover applications.
Understanding what happens when something fails is an important part of learning cloud architecture.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article