Load Balance a Laravel App
A load balancer serves as the single entry point to your application from the internet. It distributes incoming traffic across multiple targets, which could be EC2 instances or Lambda functions.
In this course, we will distribute traffic across two EC2 instances located in different availability zones. This increases the availability of your applications and allows you to easily add or remove instances at any time to increase or decrease capacity.
Progress
Series Info
- Episodes
- 6
- Run Time
- 38m
- Difficulty
- Advanced
- Last Updated
- Oct 6, 2023
- Version
- Latest
Series Episodes
- Episodes (6)
Configure the Network
Let us begin by creating the VPC in which our servers and load balancer will be placed.Create the Instances
Next, we will create two EC2 instances placed in different availability zones.Issue a Certificate
Next, we will issue a certificate for our domain from the AWS certificate manager.Create the Load Balancer
It's finally time to create the load balancer. Let's get started!Configure Listeners
Now that we have everything we need, we can configure listeners to handle requests and forward them to the instances.Provision the Servers
To wrap up this mini-series, we will provision the two servers and deploy our application. Thanks for coming along!
