Tuesday, January 20, 2015

amazon ec2 - One EC2 source with distributed varnish machines



I have a web site hosted in an EC2 instance (2008 r2 + iis7.5 + sql server).
I put one linux box running RHEL with varnish. After some configuration trail and error, I found a configuration that works.



Now I want to duplicate the varnish boxes to other availability zones, but continue to pull the pages from the original windows box.




It is my understanding that I can put the varnish boxes in different zones and pull from the windows box via it's external IP. But what do I need to do in order for each user to receive content from the box physically closest to them? Is this even possible?



Thank you!


Answer



Why would you not use Amazon's CloudFront for this? You're already trusting Amazon, and they support cusotm origins and caching dynamic objects.



Don't build your own CDN, there's no way you can do it cheaper or better than the CDNs already out there.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...