TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

14 pointsby twothumbsupover 3 years ago
As the title says, how do you all host your small personal projects with an eye towards cost? I&#x27;ve ruled out hosting them locally in my home lab.<p>I&#x27;m putting together a small personal project related to one of my hobbies, basically a tiny web app. It will have a small Postgres DB, a basic Flask API, and then eventually a TypeScript frontend. The MVP is essentially creating a query-able backend for contest results, though eventually I&#x27;d like to expand it to a whole management platform for these contests. The events happen infrequently (~3 times a year at most) so the data grows in (small) bursts and is otherwise static. At this point it&#x27;s entirely text and number data as its currently managed through spreadsheets.<p>For deployment, I&#x27;m considering:<p>* AWS RDS + EC2 (or the GCP equivalent) for the db + API * Fly.io (or another provider in this space (Heroku?)) because deploying at the edge is appealing and their DB pricing seems reasonable * Fully manual via VPS &#x2F; dedi hosts like OVH&#x2F;Vultr&#x2F;Scaleway&#x2F;etc<p>AWS&#x2F;GCP is appealing because of familiarity through work and it offloads having to manage the databases myself and the data centers are closer to our user base. EC2+RDS works out to ~$20&#x2F;mo for EC2 (t4g.small) + ~$25 for RDS (db.t4g.micro), GCP is about half that (~$25) for an e2-small and db-f1-micro.<p>Fly.io is similarly appealing with the benefit of edge deployments, not that my application is particularly latency sensitive. Fly.io would be between ~$7 (free tier compute + basic postgres) and ~$20. Heroku would be between free and $16&#x2F;mo (for the $7 hobby dyno and $9 hobby basic psql)<p>OVH et. al are appealing on a cost basis, but feel like they would require a lot more work to ensure similar reliability to the other options. Kimsufi would be between $10 - $40&#x2F;mo depending on the data center location (Canada or France), Vultr (VPS) would be $10-15&#x2F;mo, Scaleway Dev (VPS) instances would be $10-$20&#x2F;mo, Hetzner (VPS) would be $10-$15 (though the downside being their data centers are in Germany and Finland while the majority of our users are in the USA). Specs seem better for the money for these but at the cost of having to manage all of the infrastructure myself.

9 comments

dyejeover 3 years ago
Put the whole thing on a $5 Digital Ocean droplet. If you end up outgrowing it, that&#x27;s a great problem to have.
评论 #28961700 未加载
michellegienowover 3 years ago
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 <a href="https:&#x2F;&#x2F;www.cockroachlabs.com&#x2F;blog&#x2F;announcing-cockroachdb-serverless&#x2F;?cf=serv-launch-beta-homepage-banner#introducing-cockroachdb-serverless" rel="nofollow">https:&#x2F;&#x2F;www.cockroachlabs.com&#x2F;blog&#x2F;announcing-cockroachdb-se...</a>
评论 #28961966 未加载
armchairhackerover 3 years ago
Can you just use a Linode? It’s $5&#x2F;month. I bought a Linode VM and set up a server and database on it.<p>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.
评论 #28885631 未加载
评论 #28961938 未加载
impressivemessover 3 years ago
Why don&#x27;t you use GAE or Cloud run on GCP? They have a big enough free tier that you won&#x27;t have to pay even up to thousand or so users.<p>The only cost would be storage, if you&#x27;re going to use SQL. But then again cheap enough.<p>I&#x27;d suggest porting to key&#x2F;value pair DBs like mongo or firestore.
评论 #28961887 未加载
pwgover 3 years ago
&gt; I&#x27;ve ruled out hosting them locally in my home lab.<p>Then you&#x27;ve also ruled out &quot;cost-efficiently host[ing]&quot; them as well.<p>The most cost efficient method is using the internet connection you already have and are already paying for to also host them.
评论 #28893659 未加载
评论 #28881955 未加载
ldenoueover 3 years ago
I have used Google app engine since 2009 and love it: $0 charged. It powers my <a href="https:&#x2F;&#x2F;www.appblit.com" rel="nofollow">https:&#x2F;&#x2F;www.appblit.com</a> site
评论 #28961899 未加载
elamjeover 3 years ago
Dokku running on AWS light sail or DigitalOcean
评论 #28882125 未加载
atmosxover 3 years ago
You could combine CloudFlare workers and&#x2F;or fly.io and YugaByte or CockroachDB psql-compatible DBs free tiers.<p>Heroku, had a free tier as well.<p>See <a href="https:&#x2F;&#x2F;free-for.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;free-for.dev&#x2F;</a> for other possible combinations.
评论 #28961710 未加载
whb07over 3 years ago
CloudRun, Lambda, Azure Functions or similar.<p>It’s million requests for like $0.05 or something trivial.<p>By the sounds of it you probably could stay well under the free tiers offered.<p>CloudRun is just setting up a docker image properly..
评论 #28885245 未加载