Jan 29, 2025
0
Level 2
How to Load Balance SPA with Nginx
My project is built with Angular and Laravel API. I intend to use 4 VPS instances as follows:
- VPS 1 - Load balancer (Configure Nginx Load balancing here)
- VPS 2 - Laravel API
- VPS 3 - Laravel API
- VPS 4 - Database (No load balancing needed)
Should deploy frontend app (Angular) on both VPS 1 & 2 or on the load balancer?
DISCLAIMER: I'm avoiding managed services to cut down cost.
Please or to participate in this conversation.