An Azure managed PostgreSQL database service for app development and deployment.
Harsh hi and thx for join us at Q&A portal
scaling here is not “more apps” its more connections + more CPU contention, Flexible Server does not auto scale compute so u must design for it, first problem is connections so use connection pooling (PgBouncer) otherwise 40+ app servers will kill u with connection overhead before CPU even spikes, second is workload separation, dont just stack everything in one server, better split by country like u said or even by heavy vs light workloads, third is read scaling, use read replicas and move read traffic off primary, fourth is vertical scaling but thats manual so u need monitoring + autoscale logic via automation (alerts scale up/down), also check queries bc 98 percent CPU often = bad queries not just load, add indexes, tune queries, check pg_stat_statements, finally consider caching (Redis) to reduce DB hits.
Other words dont rely on one server, use pooling + replicas + sharding + tuning.
rgds,
Alex