I've been using Digital Ocean's App stuff (very similar to Heroku) for a dumb project. It works pretty seamlessly, which is good because I really don't want to do any infra work for this.
I like that you can run a simple app for 5$ a month but adding a database will cost you an additional 15$?

Someone who is good at the economy please help me, my side project is dying.

Welp, it looks like I've managed to put my app in a weird state..? I fudged around adding a database, got some issues and now nothing is happening, the container is being terminated and I have no logs.
This is a lot more efforts than I'm willing to put into a dumb project đŸ˜©

I suspect the issue is that I:
- created a database component named "db”
- promoted it to a “production" database
- deleted it
- re-created a database named ”db”
- started having some issues, so I deleted it as well
- created a new one named "db-something"

Now I have a zombie deployment for this "db" component that keeps coming back. đŸ€”

@Palleas is it cheaper to use files instead? JSON file loaded into memory on boot?
@joeyguerra probably, but writing would be annoying. Fortunately they charge by the hour (I think), so I don't think it will ever go to 10$.
@Palleas ok so probably 1000x more complex, but AWS is great for this. I run stuff for ~ 0$ a month
@mattiem I remember RDS being pretty expensive? I need to run a container (probably using a super small EC2?) and a postgres database.
@Palleas lambda + dynamo/keyspaces. Yes, if you cannot/don’t want to make NoSQL work it won’t be worth it. But if you can, soooo cheap.
@mattiem probably worth looking into this to host a bunch of dumb side projects/experiments. I played around lambdas on AWS to help write a WWDC session, but that's pretty much it.

@Palleas it’s very doable, if slightly cumbersome, with Swift. Here’s a little example I threw together. I really like Keyspaces, but Apples driver is slightly problematic with it


https://github.com/mattmassicotte/swift-keyspaces

GitHub - mattmassicotte/swift-keyspaces: An experiment connecting Swift to AWS Keyspaces (Cassandra)

An experiment connecting Swift to AWS Keyspaces (Cassandra) - mattmassicotte/swift-keyspaces

GitHub
@Palleas Why not Heroku? They have 1,000 Eco Dyno hours for $5/mo and Postgres Mini for $5/mo
@Palleas also side note: I work for Heroku, so genuinely curious.
@hawt I just saw that Heroku killed the free plan and assumed they were dead to me, but that would probably be a valid option 😁
Although I remember having to tweak my Dockerfile specifically for heroku, which was annoying, but that was a while ago
@Palleas I had to figure out Kubernetes for work, and for my side projects I have a Kubernetes cluster running on a single Linode node for $10/month, that runs a database and a few web apps. Steep learning curve if you don't know k8s but if you do, it's a pretty efficient way to run a bunch of containers.