Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: How do you host cheap relational databases?
5 points by wingshayz on Sept 12, 2022 | hide | past | favorite | 10 comments
I like building prototypes which might only have less than 10 users but need to be deployed to the public. Often I use dynamodb because the cost of this kind of load is nearly nothing, but because with dynamo you design your schema based on access patterns, I don't find it well-suited to a prototype where the access patterns change all the time. My problem is the relational dbs I've seen cost usually a min. $40/month, which is too much, especially considering I often have 10+ prototypes at once. Any ideas?



Have you considered spinning up a cheap Linux box from any VPS provider and deploying your own relational database of choice there? Sure, there will be more administrative overhead for you than there would be with managed solutions, but it will be cheaper in the long run. In your case it sounds like you might be better off just spinning up a weedy Linux box on DigitalOcean, or Vultr, or some other cloud provider and just use that.


The Vultr that I use is US$5.50/month for always-on compute. I can put whatever I want on it. Vultr offers cheaper prices for older CPUs.

1 vCPU 1 GB 1.00 TB 25 GB $5 /mo $0.007 /hr

Vultr has one-click deploy containers.


True that could work. The overhead is what I'd like to avoid, but if it were minimal I'd take that over a giant cloud bill. Thanks


A few ideas:

- colocate it with the service itself

- use (for example) fly.io where you can host a tiny one for free next to your service.

- use sqlite so you don't even have a separate service

- run aurora serverless https://aws.amazon.com/rds/aurora/serverless/


Have you tried WunderBase(https://www.youtube.com/watch?v=W_5iJom0cLU)?

This is a preview of WunderBase, an open source "Serverless" Database using SQLite as the storage and HTTP (GraphQL) as the interface.

If you want to keep up to date with WunderGraph Cloud (https://wundergraph.com/cloud-early-access)


It's my understanding digital ocean "managed postgress" allows you to create multiple databases. https://www.digitalocean.com/community/questions/how-many-da...


Wow nice how did I not know that? 10GB for $15 is perfect, thanks a bunch


Would highly recommend Railway (https://railway.app) for this! Entirely serverless, meaning you pay for hardware usage, not the hardware itself. Most DBs that I use for small projects end up costing <$1/mo (which sits well under their free plan).


Adaptable.io has a free tier that includes managed serverless Postgres (or MongoDB).


Have you tried supabase?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: