top | item 41104756

(no title)

Eiriksmal | 1 year ago

This makes me tired. I know it's supposed to be humorous self deprecation, but it's soul crushing to see the pseudo real-time thought process behind the fantastically over-engineered setups from my day jobs. All for someone's humble blog?

Obligatory HN footnote: My blog costs $6 a month to serve HTML from digital ocean. Landing in the top five links a few times on HN didn't make the Linux load blip much past 0.20. GoAccess analyzes nginx traffic logs for free, if you want to know what countries are scraping your pages.

discuss

order

tyre|1 year ago

> All for someone's humble blog?

Maybe they did it to have fun

jstummbillig|1 year ago

I am guessing here, but part of the critique might be that definition of fun

umvi|1 year ago

If you are only serving static content, it's hard to beat GitHub pages.

weitendorf|1 year ago

Cloudflare pages is better overall because it’s trivially easy to integrate with DNS for your custom domain/cloudflare workers, and handles staged changes better IMO. You can point it at a GitHub repo so unless you have a complex build it’s easy to setup.

Unfortunately IME it’s not a super well-polished product though (I can’t for the life of me get their CLI “wrangler” to login to a headless machine, and their HTTP APIs are not documented well enough to use for non-git file sources, so I can’t get it to work in my not-so-special dev environment setup). So it’s only better if you can get it to work, although that’s something you’ll probably figure out in the first 5-10m of using it.

oefrha|1 year ago

GitHub Pages is pretty bad for static content with its universal

  Cache-Control: max-age=600
that can’t be changed. Your assets should have much longer expiry and hopefully be immutable. Just get a server, it’s cheap and you can do proper cache control and you’re not beholden to your Microsoft overlord.

jacoblambda|1 year ago

Or cloudflare pages. As far as I can tell static content is served at no cost and dynamic requests have very generous free limits (something like 100k requests/day)

arp242|1 year ago

The main downside of GitHub pages is that they don't support running your own Jekyll plugins from _plugins; sometimes it's just a lot easier to write a bit of Ruby code. That said, you can just generate stuff locally and push the result, but that's the main reason I've been using Netlify.

talldayo|1 year ago

My main server costs $0, but only because I sold my soul to Oracle: https://www.oracle.com/cloud/free/

throwup238|1 year ago

Souls really don't go for much nowadays, do they. Faustian bargains used to at least get you some magic powers and renewed youth.

"I sold my soul and all I got was a $5 virtual machine"

mindslight|1 year ago

The difficulty with the "sold your soul" meme is that preserving your soul is a moving target. I've got some Oracle free tier instances. They get deployed with nixos-rebuild, same as anything else. The main difference between them and any other virtual server provider is when I've got to do something that requires logging in to the overwrought web interface, it's slightly less friendly than other providers (the IP config is a bit weird, too).

Using an offering from a specific company is not selling your soul. Selling your soul entails adopting something in a way that you become reliant upon it, giving whomever controls it leverage over you. The chief one these days is using Proprietary Software 2.0, and especially writing significant code that ends up inextricably wed to it. That can include the Oracle Cloud API, but it also includes every other lock-in-hopeful proprietary service API, including all of these "easy" and "free tier" offerings from not-yet-openly-associated-with-evil SaaS "startups".

So in short if you're choosing between some proprietary solution that offers "free" hosting (eg Heroku, Github pages, anything "serverless", etc) and Oracle free tier that gives you bog standard VMs on which you can run common libre software, choose the Oracle free tier route and don't think twice. If Oracle engages in "altering the deal", then the most you'll be on the hook for is $5/mo at a different provider rather than having to completely redo your setup.

pjc50|1 year ago

Oracle cloud is suspiciously good. They also claim not to do the AWS thing: if you exceed the free limits, they'll just shut you down rather than bill you absurd amounts of money. I guess that's reserved for the Java and DB billing divisions.

Their free tier gives you quite a lot of disk. The catch is being capped at 10Mbit, which can be mitigated by .. Cloudflare!

mrecondo|1 year ago

Good times. I'm on Oracle too but now they decided to charge me for "compute" and nothing changed at my server :(

Time to jump ship

BossingAround|1 year ago

The last time I tried, I couldn't get a VM running for whatever reason. Any issues with OC?

hinkley|1 year ago

So it cost you everything...

RockRobotRock|1 year ago

I tried it, and man is it just the worst interface in the world. $50/yr for a cheap VPS from somewhere else was worth it to me.

langcss|1 year ago

Exactly same here using digital ocean app service. $5 a month as no backup is needed :-). A CDN does most of the heavy lifting.

aitchnyu|1 year ago

Tangential, is there a single provider which does (Python) app platform (web, cron, workers) and hosted Postgres plan costing 10 usd a month? A VPS still seems most compelling option for me.

kgdiem|1 year ago

Any reason not to use S3 static hosting and cloudflare? I host at least 4 sites for between $0.03-0.1/month this way.

LVB|1 year ago

I did that for years but have recently switched to Cloudflare Pages. Cost are negligible either way, but Cloudflare auto publishing straight from a GitHub webhook out of my repo is slightly fewer components.

booi|1 year ago

I do this too! It’s kind of a pain to set all the right headers and such though. I use a deployment tool called s3_website but it seems abandoned…

ilrwbwrkhv|1 year ago

I think humans are tinkerers. Given a choice between utilitarian productivity and tinkering, unless it's a life or a death situation, people will go ham on the tinkering. Especially for such low risk things as one's personal blogs.

Now what is maybe a bit strange is companies like Vercel having massive valuations because of this. I said in another comment somewhere does anyone actually use them beyond the free or low cost tiers?

fragmede|1 year ago

serving static files via nginx is easy on the compute. I'm serving something a tiny bit more complex (instructions at http://funky.nondeterministic.computer) and the $5 DO droplet couldn't keep up. I had to upgrade to a $12/mo server to keep up.

devbent|1 year ago

Vultr does me cheaper than DO for a given amount of oomph.

ENGNR|1 year ago

It seems like just a practice run to give the latest fancy hype a spin. Bonus points - they got a blog out of it too.

calvinmorrison|1 year ago

add the extra $1/mo for backups and you're golden.

mosselman|1 year ago

I am sure he had a hell of a lot of fun though.