Database Services in AWS: Relational Databases
Database Services in AWS: Relational Databases
- Potureddi Gowtham
Relational Databases:
• These are just like excel or CSV files where we have so many rows and columns.
• A excel may have different work-sheets just like different tables in data base.
• Each table will have a relation with other table.
• Each column in a database table is called attribute.
• We will have a Primary Key in each table, to identify the information.
• Ex: registration number of a student, Surname etc. (which will be unique and will
not have repetitions.)
• To build relationship between tables we have Foreign keys.
Features of RDS:
• These Data-Base Instances can be running in more than one availability Zones.
• So, even if there is any problem with DB in one Zone, data can be taken from
Another DB .
• All this will be done automatically and taken care by Amazon.
DB – 1 DB – 2
AZ1 AZ2
• We can also maintain Read Replicas for performance
• We first must maintain a replica from primary DB and then if you need to scale
your DB, you can redirect some traffic to Read Replica.
• We can have many Replicas like this.
• Ex: if traffic is more scale DB using 5 replicas.
AZ1 Replica
• RDS runs on a virtual machine, but you cannot SSH or login to these machines.
Automated backups:
Database Snapshots:
Note:
• SQL SERVER
• ORACLE
• MYSQL
• PostgreSQL
• Amazon Aurora
• Made by amazon
• MariaDB
• If we make a write in DB, we can read that after a second are two.
• Unlike Eventual Consistent read we can read the data in less than a second.
• Reads are very fast.
• So, based on the use-case we can select the Eventual or Strong read types.
Data Warehousing:
AWS RedShift:
Leader Node
AWS Elasticache:
Transactional Database
Gaming Application