Answer the question
In order to leave comments, you need to log in
Geo-balancing a small Laravel project?
I am working on a project on Laravel, I need your help in choosing technologies for geo-balancing. The goal is
to optimize the response time of the application for certain regions as much as possible. At the moment it is Asia and Europe.
After reading the information from the issuance of Google, the following scheme has developed:
Balancing at the DNS level (for example, Cloudflare Load Balancing + sticky sessions) on two Digitalocean droplets with copies of the Nginx + PHP7-FPM + MySQL + Laravel application (let it be Singapore for Asia and Amsterdam for Europe ). Droplets are synchronized with each other using Rsync.
Since the load is not planned to be very high, each droplet will have its own MySQL server with configured replication (Amsterdam - Master (read and write), Singapore - Slave (read only)). In the future, scaling to other regions is possible.
Statics - Cloudflare CDN.
This is my first experience. How reasonable is this approach?
Answer the question
In order to leave comments, you need to log in
If it is possible to use several servers in different regions:
1. Set up database replication
2. Set up file synchronization (I recommend syncthing )
3. Set up GEO balancing and failover (if necessary) on DNS hosting (I recommend zilore , but, recently - paid )
Profit!
Cloudflare is good enough for everything and it's free.
There is not only a CDN, all requests are proxied through the CloudFlare server closest to the client
I have never dealt with load balancing, but I think you are in the right direction.
CDN - for js and css files, and some kind of file storage (ala Amazon) for files (pictures, exe, etc.)
Simple - Geo DNS
https://ns1.com/
www.geoscaling.com
https://constellix.com/pricing/dns/
https://aws.amazon.com/en/route53/
Rent AS + IP network /24 (256 IP addresses) from $100/month https://ipaddress.ru/
VPS Servers with BGP session support from $2.5 https://www.vultr.com/pricing/
See also Railgun™ Origin Network Optimizer
https://www.cloudflare.com/website-optimization/ra...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question