Home > Programming, Servers & Scripts > Hosting, Servers & Security

AWS EC2/Route 53 vs Cloudfront/S3 (9)


03-18-2015 09:20 AM #1 louisachoo (Member)
AWS EC2/Route 53 vs Cloudfront/S3

Anyone have experience with either of these setups? Am currently on a straight forward CDN - rackspace. But as I move along I'd be needing some PHP on them pages, so after some research and digging around STM, I've came down to 2 choices:

1. AWS EC2 + Route 53
2. AWS S3 + Cloudfront CDN

A programmer i'm working with recommends option 1, with feedback that 2. does not support dynamic PHP. But with some googling and searching around, seems like Cloudfront does indeed support PHP.

going in circles with these 2, if anyone has any input it'd be greatly appreciated! especially in terms of performance/price/speed.


03-18-2015 12:43 PM #2 zeno (Administrator)

CloudFront is a CDN. CDN's don't process PHP for you, so #1 is your only option.

I'm not sure why you are focused on Amazon?

Plenty of providers can give you an unmanaged VPS for $10-20/month that will outperform an EC2 instance, e.g. Linode, DigitalOcean, Ramnode.

You can use Amazon's Route 53 for DNS if you want, and CloudFront as a CDN, both of these are separate to the servers you use and provider.


03-18-2015 01:28 PM #3 BeyondHosting-Tyler (Member)

Basic server + cloudflare is pretty solid. You'd be amazed as the performance you can deliver at such a low cost.


03-18-2015 02:00 PM #4 Nigel (Member)

It's pretty straight forward if our main GEO consists only of one country (then we can get a basic server + CDN closer to that geo)...., but what if we're dealing with large volume of mobile traffic from countries in different continents.....what servers/services can we use to serve our PHP mobile landers with the fastest loading/redirect/connecting speed from our server to our end-users with a monthly budget of $600 - $1000 to spare?


03-18-2015 02:43 PM #5 louisachoo (Member)

Quote Originally Posted by zeno View Post
CloudFront is a CDN. CDN's don't process PHP for you, so #1 is your only option.

I'm not sure why you are focused on Amazon?

Plenty of providers can give you an unmanaged VPS for $10-20/month that will outperform an EC2 instance, e.g. Linode, DigitalOcean, Ramnode.

You can use Amazon's Route 53 for DNS if you want, and CloudFront as a CDN, both of these are separate to the servers you use and provider.
Thanks for the input fellas.

No huge reason why i'm sticking with amazon, just the guy i hired to set this up recommended AWS. Will explore the other options. thanks for the recommendation!

I'm actually currently using DNS made easy and rackspace and was proceeding with option #1, when i saw this: http://aws.amazon.com/cloudfront/dynamic-content/
"CloudFront is a web service that speeds up distribution of your static and dynamic web content, for example, .html, .css, .php, and image files, to end users."

So i'm confused if it does or does not support php?


03-18-2015 03:14 PM #6 zeno (Administrator)

It can accelerate delivery of that content, but can't process the PHP. A clear difference to those involved with that kind of stuff but a bit muddy to others.

CloudFront can pull content from your server on the fly and act as a bridge between your user and your server, allowing it to pull dynamic (PHP) content through their network. If your content changes every few minutes you can actually cache it. If it changes each page load per user, you can't, and arbitraging it through the CloudFront network can just help deliverability but may not (it depends...).

What works well is to layer CloudFront over your server and have it directly pull cacheable content like images, then have a rule telling it to not touch PHP i.e. not cache at all.

This is not ideal to do over the top of a tracking system unless you know what you're doing as it gets a bit complex.


03-18-2015 04:23 PM #7 louisachoo (Member)

Got it Zeno, many thanks!


04-21-2015 02:20 PM #8 nt2000 (Member)

I've just set up on S3 and Cloudfront, would it be considered good practice for mobile campaigns, mainly from a speed point of view?


05-15-2015 10:19 AM #9 virginmobile (Member)

What about add NodeJS in myserver,

1. Install Selft Hosted Tracker like Thrive or P202
2. Create Independent redirected script using nodejs, that connected to tracker database

any ideas?


Home > Programming, Servers & Scripts > Hosting, Servers & Security