AMSA

Week 13: AWS RDS

Ferran Aran Domingo
Oriol Agost Batalla
Pablo Fraile Alonso

Goals for today

  • Understand why we probably need someone to manage our Database.
  • See how RDS works and what can it offers us.

Recap

  • What we covered in the last class.

Running our API (server + database) with docker on EC2

What could be wrong (on the database side)?

  • Scalabilty issues.
  • Non-Redundancy issues.
  • The EC2 disk is full.

Welcome RDS!

A service that amazon gives to us, so we can:

  • Scale.
  • Add Redundancy.
  • No need to worry about installing PostgreSQL or other dependencies.

Configure RDS:

  • The RDS must live on a VPC.
  • The RDS must live on a SubnetGroup 1 and each subnet should live on a different AZ (Availability-Zone).
  • You must configure the instance that runs it (it uses EC2 under the hood).

Architecture

Why a SubnetGroup? Why two Availability Zones?

Summary

  • ECR is just an EC2 with a pre-configured database.
  • It gives us the possibility to have two Availability Zones, for redundancy (Multi-AZ).
  • Backup options, etc.
  • It’s NOT cheap.

References

Additional Exercices

If you really want to understand a little bit more what happens under the hood, you can do the following exercices. Be aware that you should read the “Really Recommended References” first, and then try to do this exercices.