Settings

Theme

Ask HN: How do you host cheap relational databases?

5 points by wingshayz 3 years ago · 10 comments · 1 min read


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?

bkq 3 years ago

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.

  • adamredwoods 3 years ago

    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.

  • wingshayzOP 3 years ago

    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

viraptor 3 years ago

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/

SlickStef11 3 years ago

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)

nslindtner 3 years ago

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

MorganGallant 3 years ago

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).

mterrel 3 years ago

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

mstibbard 3 years ago

Have you tried supabase?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection