Live data from Hacker News

Ask HN: How do you cost-efficiently host your small personal projects?

news.ycombinator.com

11–20 of 22 posts

Re: Ask HN: How do you cost-efficiently host your small personal projects?

#11

Can you just use a Linode? It’s $5/month. I bought a Linode VM and set up a server and database on it. Main drawback is efficiency, idk how fast a linode works once you have users. But once you have users if you can make money off them, you can migrate to AWS.

Been a very happy user of Linode for years. Didn't get lucky to have many users, but it worked perfectly for intensive backend jobs, never noticed any slowdown as opposed to DO.

Re: Ask HN: How do you cost-efficiently host your small personal projects?

#13
post #3

> I've ruled out hosting them locally in my home lab. Then you've also ruled out "cost-efficiently host[ing]" them as well. The most cost efficient method is using the internet connection you already have and are already paying for to also host them.

Kind of depends; my DO droplet is $6/month (I pay for their backup), and static IPs (if available) often cost that much, or more to add to a residential internet connection. Currently, I would need to have new service installed to switch to a different billing system where they could add a static; even the service was the same cost, I'd be paying off the install for a long time, so...

OTOH, if I needed more hardware, it'd be helpful to serve from home, because renting hardware gets expensive.

Re: Ask HN: How do you cost-efficiently host your small personal projects?

#16
Cockroach just today launched a free hosted serverless version of the db. Looks generous free tier then reasonable once you outgrow, postgres wire compatible, sign up thru GH https://www.cockroachlabs.com/blog/announcing-cockroachdb-se...

Re: Ask HN: How do you cost-efficiently host your small personal projects?

#18
post #14

You could combine CloudFlare workers and/or fly.io and YugaByte or CockroachDB psql-compatible DBs free tiers. Heroku, had a free tier as well. See https://free-for.dev/ for other possible combinations.

https://free-for.dev is a great resource I wasn't aware of, thanks for linking it as well as the ideas about YugaByte and CockroachDB!

Re: Ask HN: How do you cost-efficiently host your small personal projects?

#19

Why don't you use GAE or Cloud run on GCP? They have a big enough free tier that you won't have to pay even up to thousand or so users. The only cost would be storage, if you're going to use SQL. But then again cheap enough. I'd suggest porting to key/value pair DBs like mongo or firestore.

GAE/Cloud Run are certainly possibilities, I'll have to look into them.

> I'd suggest porting to key/value pair DBs like mongo or firestore.

Why? The data set feels pretty "relational" to me (contests have divisions, divisions have scorings and results, results have players, players have sponsors) and seems to fit SQL. To be fair though, I've not used Mongo or Firestore or a NoSQL db in general before.

The "scorings" part is the only thing that tripped me up designing a schema since it varies between divisions in a contest as well as between contests themselves, so I ended up w/ a JSONB column for scoring rubric for divisions and then in the results table there's both final_score and scoring_breakdown columns, the beakdown being another JSONB column w/ the individual category results.

Re: Ask HN: How do you cost-efficiently host your small personal projects?

#20
post #15

I have used Google app engine since 2009 and love it: $0 charged. It powers my https://www.appblit.com site

Seen GAE referenced across several comments and apparently Snapchat started on GAE as well (lol not that this has any chance or even need in the big success case of scaling up so much) so it's definitely something I will look into!
Post reply on HN