As per question. DynamoDB is fully managed and charged by read/writes, so for a hobby application that gets used say once a day or once per week the monthly cost is virtually NIL. The closest relational database product I could find on AWS is Aurora Serverless, but that is charged per hour so relies on the database going to sleep when not in use to keep the cost down. And that in turn causes a 30 second delay for the database to restart each time the application is accessed. So is that it or is there another relational database product on AWS, which is also charged on read/writes/storage that I can look at for a hobby application that would have a sub $5/month cost?
That’s about it as far as stock AWS offerings.
If it’s a hobby app and you want to cook up a cheaper option, if you’re running it on an EC2 instance you can install MySQL or PostgreSQL on the instance and manage it yourself.
If you’re using Lambda you could use SQLite and stash the database file in S3 - with a big emphasis on hacky/unreliable and is horrible for writes and performance will become terrible if the DB gets any bigger than “small” (and a hard limit of about 500 MB as you’d run out of /tmp on the Lambda at that point). Really more of an exercise in stupid tricks than able to provide a real solution …
Database in S3 could sort of work so long as you were in a single-writer many-readers situation. As soon as there were two writers you’d have one blindly overwriting the changes of the other.
You could serialise writes by adding them to a FIFO queue and applying them with a Lambda, but then things are just getting silly…
Yup - there is no concurrency … although I used to work at an organization that had a an app with a MS Access db on a shared SMB filesystem with about 20 users and they used the app for years and years without conflict. Although IIRC, they usually anointed someone as the “database updater” ![]()
At risk of not actually answering your question, the managed Cassandra service has a similar pricing model (pretty sure it is built on top of dynamo), and CQL is SQL-ish (but not relational)
I’ve found something called Lightsail managed databases. They are designed to be used with Lightsail mini VMs, and at $15/month are dearer than planned. But I wonder if AWS place some physical block to stop them being used with other AWS services.
We had one sysadmin that would build off-the-books Access DB apps for business units. Every single one was like this.
You could just install MySQL yourself on a regular $3.50/month Lightsail instance to get the cost down further.
Aurora Serverless, but that is charged per hour
That’s not correct.
Note: Massively edited due to looking up vanilla aurora pricing rather than serverless…
Aurora serverless bills by ACU. There isn’t a good price sheet that I can find, the examples at the bottom of this page are as good as it gets.
If you are building a hobby app, what is it about that app that requires a full relational DB engine?
Is it simply an interest in keeping with what you know?
But what’s my alternative? It’s a book keeping app that manages my finances, integrates with my banks API, so the tables are all related to each other. It’s written using Python on Django, which I think only supports relational databases.
Actually, if you want something cheap and don’t mind a little work yourself, just put a MySQL DB on a small EC2.
In this situation your dependency on Django forces your hand. IMO, AWS isn’t the best place for something like Django, there are tons of cheap VPS providers that offer exactly what you need for a low price. That said, you could look at Lightsail, which is AWS’ VPS-like thing.
In that case, would you really need to run it on AWS? For example, why not get a Vultr or Digital Ocean server, and run it there? That will cost you $2.50 or $5.00 per month respectively, and (for me) is often a way cheaper and simpler solution
Yup, the app is currently on Heroku, running nicely, in a managed environment, secure and isolated from other users (unlike shared hosting), and costing $7 a month
So why am I looking at AWS? A few reasons. To help me learn AWS (for work), and because Heroku can be restrictive with certain things.
Has anyone tried SQLite on EFS?
Im just gonna beat the dead horse some more but EC2 instance with PostgreSQL or Mysql would be relatively cheap especially if you keep it on the free tier assuming you arnt using AWS now.
You could run your app on aws and use the cheap heroku postgres database, if your data fits into the row limits
Aurora Serverless. The pricing os based on ACU (Aurora Consume Units), similar to DynamoDB pricing.
Not from AWS but take a look at FaunaDB:
Many popular frameworks (e.g., Django) that hobby apps depend on a relational database, because that was the most popular choice when we were hosting things on a VPS (of course nothing prevents people from running them on an EC2 instance but… it’s nice to have a more durable managed service).
I’ll also add that relational databases are really convenient for hobby apps because they support very flexible query patterns with reasonable performance. You can’t really get the same thing with something like DynamoDB without a more complicated setup.