Back to Browse

Horizontally Scaling Laravel/PHP In Amazon AWS

1.0K views
Jul 9, 2024
47:37

In this video I take a look at horizontally scaling our Laravel / PHP application within the Amazon cloud infrastructure. I cover the following: 1. Horizontal vs Vertical Scaling 2. Using Nginx as a Load Balancer 3. Two Configurations for Horizontal Scaling I compare the performance of the following instance types: * c7i.large (2 vCPU / 4 GiB RAM) X 1 * c7i.large (2 vCPU / 4 GiB RAM) X 2 * c7i.large (2 vCPU / 4 GiB RAM) X 3 * c7i.large (2 vCPU / 4 GiB RAM) X 4 * c7i.large (2 vCPU / 4 GiB RAM) X 5 I then compare the performance / cost against our previous results of vertically scaling with the following: * c7i.large (2 vCPU / 4 GiB RAM) * c7i.xlarge (4 vCPU / 8GiB RAM) * c7i.2xlarge (8 vCPU / 16 GiB RAM) * c7i.4xlarge (16 vCPU / 32 GiB RAM) * c7i.8xlarge (32 vCPU / 64 GiB RAM) This is a long video and but provides a lot of information. Here are the chapters if you want to jump around: TIMESTAMPS 00:00 Introduction 00:55 Background 02:54 Infrastructure 07:06 Testing Process 07:27 Theoretical Look At Horizontal vs Vertical Scaling 10:30 Convert t2.micro into c7i.large Instance 11:45 SSL Certificate Termination 13:11 Create AMI (Amazon Machine Image) For Web Tier 13:53 Provision Web Tiers 16:52 Configure Web Tiers (Nginx - PHPFPM - Laravel) 21:44 Configure Load Balancer (HTTPS - HTTP) 26:14 Add Web Tiers to RDS 27:47 Testing of Horizontal Scaling Starts 34:59 HORIZONTAL SCALING SUMMARY (HTTPS - HTTP) 37:50 Remove Nginx From Web Tier (PHPFPM - Laravel) 40:37 Configure Load Balancer (HTTPS - PHPFPM) 43:14 HORIZONTAL SCALING SUMMARY (HTTPS - PHPFPM) 47:37 Roadmap This is a continuation of the previous videos in the series where we are developing our capability to deploy an application to Amazon AWS. Previously we covered: - 7 Steps To Deploy Laravel to AWS (8 videos, start here: https://youtu.be/IgJWK4aQ2jQ) - DevOps and Infrastructure As Code (4 videos, start here: https://youtu.be/7xOpxpdLcfI) - DevOps - Continuous Integration / Continuous Delivery (3 videos, start here: https://youtu.be/w3mxNdJPEL8) - MySQL Master / Slave Deployment in Amazon AWS (https://youtu.be/ZphSFGn_VZA) - Amazon AWS RDS Fully Managed Database Deployment (https://youtu.be/hvBO66IY3Yg) - Amazon AWS ElastiCache Deployment (https://youtu.be/NOpz9ULFSZ4) - Scaling Laravel Horizon Workers and Scheduler (https://youtu.be/QywKc8Bh1Xk) - Nginx and PHP-FPM Performance Optimization (https://youtu.be/xA7viR6erXc) - Vertically Scaling Laravel/PHP In Amazon AWS (https://youtu.be/DDwzAYEz_Q0) #nginx #php #phpfpm #laravel #ec2 #amazon #aws #amazonaws #scaling #laravel #technologysandbox

Download

0 formats

No download links available.

Horizontally Scaling Laravel/PHP In Amazon AWS | NatokHD