I have a site hosted on Amazon EC2 (USA West) running on a micro-instance. Unfortunately these are the load times as reported from Google Analytics
Avg. Page Load Time (sec): 9.94 Avg. Redirection Time (sec): 0.21 Avg. Domain Lookup Time (sec): 0.13 Avg. Server Connection Time (sec): 0.06 Avg. Server Response Time (sec): 2.07 Avg. Page Download Time (sec): 0.16
These, I believe, are times calculated on the first access to the site. They're terrible and would like to drastically improve them. The site itself is quite optimized but what makes up for most of the time is the lag between pressing
Enter in the url bar and having the first page elements to return.
I already optimized most of the stuff I could based on input by Google PageSpeed / YSlow.
Some optimizations I could still do are:
- using nginx instead of Apache (also as a proxy cache)
- serving static content with CloudFront
- adding more servers in other regions and load-balancing the requests based on proximity
What else could I do to drastically reduce page-load time to around 2s?