title: What's a simple key-value storage system that's cheaper than Redis?
body: <p>I am writing a simple app, split in front end / back end, the latter being in node.js</p>
  <p>I do need to save some data (basically caching). The idea is to have a process running every day or so that will aggregate some data and save it somewhere as JSON ready to be used by the front end. Front end will ask for the data of a given key and get the corresponding JSON.</p>
  <p>I used redis and it works perfectly, but now that I am looking into hosting, I'm realizing that it gets pretty expensive (cheapest Redis instance on GCP is about 35usd a month). This is an app that will see very little use, it's mostly a personal project and it doesn't matter if it's a bit slow, I just want to keep the costs as low as possible.</p>
  <p>I was thinking of having the front end hosted on gitlab pages (free), back end being 2 GCP functions (1 to prepare the data, 1 as web server)(pay per second used, which will be so little it'll be virtually free), so it's really just the data storage that is blocking me right now.</p>
  <p>There is quite a bit of data (around 100-200k keys, total about 200-500Mo before looking into compression), which means even setting up a redis on a VPS doesn't seem like the best option and if I did take a VPS (which I would prefer to avoid if possible) - cheap VPSs have usually little RAM, so I should still find a system that saves on drive instead of in-memory.</p>
  <p>Hosting could be wherever, so far I've looked mostly into AWS, GCP and Heroku. I've found that Firebase (GCP) or DynamoDB (AWS) seem like they could work and still be cheap (i'd be barely above the free threshold on GCP), but I don't know much about those. I've also read about things like LMDB or SSDB but it seems like I would need to get a VPS and fiddle to get them to work with node. Finally I could also store that in a SQL database, or even in plain files but that just seems too dirty.</p>
  <p>What do you guys think?</p>