Apapche + php-fpm + mysql too slow on powerful server

Solution 1:

I think you could set nginx to cache and reverse proxy the requests to apache and Cloudfront. I did that a time ago. And solve my problem of latency.

My setup is: EC2 + RDS + Cloudfront/S3

I setup my EC2 with nginx caching and proxying request of static files to cloudfront that points to a bucket on S3. And chaching and proxying requestes that needs to run on server-side to apache. And set my database service on RDS.

That solves my problem and decreased my latency to milliseconds.