Combining Heroku with custom external services (e. g. Varnish or Postgres on EC2)

view full story

http://serverfault.com – I'm planning to set up a Django site on Heroku. It will run on Heroku's Cedar stack, which allows Python apps, but doesn't include or support HTTP upstream caching with Varnish like the other stacks do. It will be a very read-heavy site and I'd like to use Varnish for HTTP caching. I guess it should be possible to set up my own Varnish instance, point the site's A record to that instance and then have it fetch and cache the content from my Heroku app. I thought that for minimizing latency, it would be a good idea to host that instance on EC2 in the same availability zone Heroku is in. Do yo (HowTos)