2 Answers
- Newest
- Most votes
- Most comments
0
Hello,
If you are connecting to a single instance from clients it is a SPOF (Single Point of Failure) design, if you use a load balancer you can scale your Web/App fleet and achieve high availability.
As for which one to choose (ALB Vs NLB) see below link for the key differences between the two.
0
Hello,
- is there any specific reason you are using application running on only one instance ?
- I would recommend you to have Load balancer (ALB or NLB) based on your use case and have two ec2 instance in different Availability zone.
- Also launch the instances using AWS Autoscaling (ASG) .
- In the Autoscaling, have the health check as Load balancer, so that when loadbalancer marks any instance as unhealthy, ASG terminates the instance and launch instance new instance , also it attach the new instance back to the load balancer .
Web Application Hosting in the AWS Cloud.
AWS Serverless Multi-Tier Architectures with Amazon API Gateway and AWS Lambda
answered a year ago
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated a year ago
- How can I troubleshoot issues when I use the AWS Load Balancer Controller to create a load balancer?AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago