|
|
|
|
|
by WestCoastJustin
4693 days ago
|
|
Cool idea. I might suggest creating a static version of your site and hosting it on s3. This will make it much more stable if you have a high read rate. Then you can point the new submissions to a app server or something. You don't have to get fancy with this or anything, a simple 'wget -r http://www.kickoffboost.com/' and upload that to a s3 bucket, etc. |
|
All you have to do is set the cache control headers for your landing page to something like "max-age=300, public". That way cloudflare's servers will eat the vast majority of your requests, but no one will see content older than a few minutes.
We got HN'd the other day and this kept our median response time around 25ms, even for our slow rails app.
Of course you have to make sure your landing page is publicly cacheable for this to work (i.e. no user specific data), but that's a small price to pay for a drastic reduction in the amount of traffic you need to serve.