DEV Community

Discussion on: I Just Deleted Thousands of Records from Production 😬

Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

Heroku is expensive but with some AWS knowledge, you can get this much cheaper.
Migrate your database using Database Migration Service (DMS) from Heroku to RDS, it will cost nothing to do so.

The smallest RDS instance (t2.micro) costs $14 USD / mo. So that comes with automatic backups. So that's already saving you ~40 USD / mo over Heroku.

AWS comes with Free Tier usage of 750 hours. There's something ~730 hours in a month so that means the first month free.

AWS has a service called Aurora Serverless which runs a MySQL database only when you need it, so if this app is a pet project or not really in heavy use (some traffic each day) you would be paying pennies per month and it's super highly available and durable and has automatic backups.