I'm running an online store, at the moment I've been hosting on Pantheon but it's not as fast as I'd hoped especially given my main customer base is in Australia.
I've been experimenting with a bunch of high performance setups, but once you throw whole site SSL into the mix things get really messy ...
I was thinking about an architecture like this:
- CloudFlare sits on top providing our SSL layer (end to end mode). This gives us SPDY support which means our static assets load nice and fast.
- Static images sit on static.example.com (via cdn module), so they don't receive any cookie headers, ensuring CloudFlare is caching them at the edge. Served up by nginx.
- All traffic to the naked domain and www is assumed to be anonymous and cached, via PageRules at CloudFlare's end.
- All authenticated traffic, or shopping cart activity, is bounced to secure.example.com (via securepages module [a]), which is then served up with nginx. We don't need Varnish (because all traffic here is authenticated) or Apache (because nginx is just passing to index.php via fastcgi).
[a] would that even work? the form would have to be submitted to the secure domain, not to the naked domain and then redirected because our cookie_domain will be secure.example.com
Has anyone tried something like this before? I can't find many people talking about CloudFlare and Drupal. Is there anything I'm missing? What are other people out there doing to get <300ms load times?