Skip to content

Instantly share code, notes, and snippets.

@polodev
Last active July 1, 2023 14:23
Show Gist options
  • Save polodev/e7ce37cdfd7b692f91323af816c8e871 to your computer and use it in GitHub Desktop.
Save polodev/e7ce37cdfd7b692f91323af816c8e871 to your computer and use it in GitHub Desktop.
Loadbalancer and server for laravel app

Required Server for Running App Servers and Their options

1. Load Balancer Server

  • EC2 instance with nginx load Balancer
  • AWS Lightsail Load Balancer [CURRENTLY USING]
  • AWS ELB

2. File Server [where file uploaded to]

  • S3 [CURRENTLY USING]
  • A lot of Options [Never Required]

3. Database Server

  • EC2 Ubuntu instance with database setup
  • AWS Lighsail Database [CURRENTLY USING]
  • AWS RDS [prefer: when use ec2]

4. Cache Server [Required More Ram]

  • EC2 Ubuntu instance with Redis and Memcached installed
  • DynamoDB [can't use as DynamoDB having limitation]
  • Elastic Cache

4. Session Server [Can be merge with Cache Server]

  • EC2 Ubuntu instance with Redis and Memcached installed
  • DynamoDB
  • Elastic Cache

5. Queue Server [Required more ram]

  • EC2 Ubuntu instance with supervisor.d installed and code deployed

6. Logging SAAS

  • Papertrail Service
  • AWS Cloud Watch

Tips for Schedule Task [won't required any server]

  • keep Cron/Schedule job running inside one app server. and disabled in other app server

APP Servers For Code Deploy

  • App Server 1
  • App Server 2
  • App Server 2
  • And More Servers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment