I’m building my first app which includes a backend, frontend, and a database. I’m considering using Docker for my backend and possibly putting the database in a separate container.
I think paying for a database hosting service would cost around $10 per month, while hosting it myself might not raise my costs significantly. Should I opt for the paid service for easier management?
Just looking for advice and to see what others have done.
Edit: I meant to say it’s a Postgres database.
Edit 2: I realize I don’t mean ‘self-hosted’; I mean running the database on a server I manage instead of paying for a managed database service.
Lin said: @Devi
Yes, managing it yourself involves more DevOps tasks, like Docker, Nginx, and scaling, while managed services take care of those aspects.
Would you then recommend a service? As a one-person team, I’d be happy to pay around $10 per month for something straightforward. Some people have mentioned Neon, where I think I’d fit within the free tier.
I suggest self-hosting. There is little to manage since, at low traffic levels, the database requires no tuning or scaling. I managed to reach 200k daily active users with just one DB instance.
Kai said:
I suggest self-hosting. There is little to manage since, at low traffic levels, the database requires no tuning or scaling. I managed to reach 200k daily active users with just one DB instance.
Would I need to manage backups as well? I’m unsure about the requirements and process for that.
The most cost-effective way is to self-host on a Docker instance, but consider hidden costs like time spent on administration, infrastructure for redundancy, backups, updates, etc.
Although it may seem overkill for a small app, ask yourself if managing these intricacies is worth it. Do you have the skills to handle potential issues that may arise behind the scenes?
Personally, I’ve gone with NeonDB due to their generous free tier, especially since you’re using Postgres which is compatible with their service.
@Avery
Thanks, Neon was recommended by someone else too. As a solo developer, I’d be comfortable paying $10/month for ease of use, and I think I’d fit within their free tier.