Veganism Social now has regional web and database servers in:
🌇 Frankfurt
🗽 New York City
🌄 San Francisco
🦘 Sydney
This is highly experimental, but appears to be working with our limited rollout.
Technology used:
Cloudflare caching w Imgproxy
Cloudflare geo load balancer
Load balancer path rules
Digital Ocean managed postgres
Postgres read-only replicas
Custom deployment pipeline 😅
We're only using the regional servers for GET requests on our API and landing (/, /about) endpoints. All other HTTP requests go to Frankfurt where our primary db and Redis lives.
My plan for tomorrow is to make /inbox skip the load balancer and directly go to Frankfurt.