Reputation: 2639
I want to host a database on AWS. RDS is one option but I have heard something about containers (and ECS). I see containers as useful for testing, but I'm uncertain about running a production database on one. What would be the advantages and disadvantages of each of them?
Upvotes: 17
Views: 12803
Reputation: 24483
Run a database yourself on an EC2 instance:
Run a database on RDS:
Run a database inside a container on an EC2 instance:
All the advantages & disadvantages of running the DB yourself, plus
Running a DB in a container under ECS doesn't really get you advantages over managing the containers yourself. But if you're using ECS for the rest of your stack and you're putting the DB in a container, then you'd just want to use ECS for that also.
Upvotes: 27