How to auto register and deregister EC2 Instances behind Application Load Balancer (ALB) using Lambda?
Consider that you’re running an eCommerce website that doesn’t have scaling capability in place, and also you’re much aware of the load such as when the load will increase and decrease. You also don’t want to assign a dedicated person to manually add or

Benefits of Using LambdaAWS Lambda offers Scalability and you will be charged only when your code runs. There is no charge when your code is not running. No need to create, manage and monitor servers. AWS will do it for you by running the code on a high-availability compute environment.
Supported Languages
What is Elastic Compute Cloud?Elastic Compute Cloud is a primary service in the massive AWS ecosystem that is highly used by users. It is a virtual server with customizable hardware components and an OS using which you can run applications on the AWS infrastructure. It allows you to configure and run multiple virtual OS and manage the same with a single hardware. EC2 Instance Types: AWS EC2 offers different types of EC2 instances based on different use cases. Each instance type has a varying combination of CPU, Memory, Disk, and Network performance and we can choose the appropriate instance type that best fits our applications.
These instance types provide a balance of CPU, memory, and network resources and it is ideal for web servers and for hosting self-managed code repositories.
These instance types are most suited for high-performance web servers, batch processing workloads, high-performance computing (HPC), machine learning interfaces, gaming servers, etc.
These instance types deliver high performance for workloads that manage huge data sets in memory. For example MongoDB.
These instances use hardware accelerators to perform processing of graphics, data pattern matching, etc.
These instances are designed for high workloads that perform sequential read and write operations on the large data which are stored locally. What is Elastic Load Balancing?Elastic load balancing automatically distributes incoming requests across multiple targets such as EC2 instances, containers, and lambda functions. It can handle the load by spreading the traffic to multiple targets which are hosted in a single or across multiple availability zones. There are four types of load balancers that offer auto-scaling and high availability Application Load Balancer
Classic Load Balancer Network Load Balancer
Gateway Load Balancer
| ||||
Related Articles
Stay in the loop
Get the latest insights and stories delivered to your inbox weekly.