Making a horizontally scalable server infrastructure with Laravel Forge and AWS EC2 instances, that can deliver high performance traffic and execution.

Overview of the server infrastructure
  1. Create the servers and make the connections required between the servers.
  2. Pointing the site domain to the load-balancer.
  3. Configure the Load-balancer.
  4. Setup the Application servers and install the app to the application servers.
  5. Configure the cache and worker servers.
  • 1 load-balancer
  • 2 app server
  • 1 cache server
  • 1 worker server
  • 1 database server

STEP 2: Pointing the site domain to the load-balancer

Pointing the domain to the Load Balancer, Now we should setup the domain IP to the load balancer server IP address. I have setup an Elastic IP for my load balancer, and I will use that here. Once you have done that, your domain example.com will ping to the load balancer IP that you have just setup. In this moment, now it’s not doing anything and probably will show you a 404 page, which is alright as we didn’t setup anything yet.

Summary:

So up to now we have created all the necessary servers and made the required connections. We have also pointed our domain to the load-balancer. Now we have to install the applications and configure it. We will take that into the next article. If you are still interested please follow the next article.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store