Hacker News new | ask | show | jobs
by amdixon 3161 days ago
We love Middleman for static sites; curious why you chose to go with a server instead of S3+Cloudfront or Netlify. One of the biggest reasons we use static site generators is the ability to CDN the whole thing, making it dirt cheap and blazing fast.
3 comments

S3 + cloudfront ftw! Also you can use compression with cloudfront, which makes it that much better.
I've actually used Netlify numerous times and love it. The simple answer to why I chose to manage my own server was mostly to learn how and have full control.
> making it dirt cheap and blazing fast.

If you’re using S3+CloudFront, it’s not dirt cheap.

Traffic at AWS is so expensive, at any scale it’s cheaper to roll your own. Significantly.

(For traffic in the EU, that is, in other regions traffic tends to be a lot more expensive)

For what you get out of the box with this setup (or Google Cloud Storage + Cloud Load Balancing/CDN) it actually can be "dirt cheap", depending on your business goals/traffic. Just like anything, it depends on what you value/what your time is worth. The pricing difference would need to be several (several) orders of magnitude larger than it is for me to worry about the few dollars a month I'm spending on each static site sitting in S3/Cloud Storage.

Also, if there is an issue with either of these it's far easier for me to justify downtime to a client by saying "Amazon us-east is down, here's Amazon's status page" then trying to explain who OVH is.

You will need to spend time to set up your site for Amazon or for cheap DO instance, I don't see what you can save here. You can have your own virtual server with root privileges and iptables and custom software and with Amazon you will have to pay for every new feature.
As I said, it really just comes down to business goals. Setting up a shared DO box with iptables isnt worth my time when it's still just a single DO box at the end of the day.

S3 + Cloudfront + ad hoc Lambdas is a far far easier cost benefit ratio when it comes out what my time is worth. To each their own :)

I'm under the impression that by "it's not worth of my time", you actually mean "I don't like sysadmin" :)
Ha. Well, it's more that there are things I can justify charging for and things I cannot. Standing up a sub par solution for a larger investment of time doesn't make a ton of fiscal sense to myself or my clients.
Setting iptables is not absolutely necessary since DO offers a built-in firewall.
You would roll your own CDN? I think that setting up a worldwide server network with seamless scaling would involve some work.
You don't always have to.

For example, I use a CDN for some of my assets, except for users in the EU.

It turns out, for users in the EU I can get faster speeds with my own systems, for almost two orders of magnitude difference in traffic pricing.

If a large amount of your users happen to be in such a region, it might even make sense to use no CDN at all.