RSDB En-Us SG m06 Amazonrds
RSDB En-Us SG m06 Amazonrds
Database Fundamentals
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
In this module, you’ll discover key concepts that are related to database solutions,
including the following:
The goal of this module is to help you understand the database resources that are
available to power your solution. You will also review the different service features
that are available so that you can understand how different choices affect solution
availability.
What you will learn
2 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application
servers
Amazon RDS
4 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS is a managed database service that sets up and operates a relational
database in the cloud.
Amazon RDS frees you to focus on your applications so that you can give them the
performance, high availability, security, and compatibility that they need. With
Amazon RDS, your primary focus is your data and optimizing your application.
Amazon RDS use cases
Web and mobile applications Ecommerce applications Mobile and online games
5 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon RDS works well for web and mobile applications that need a database with
high throughput, extensive storage scalability, and high availability. Because Amazon
RDS does not have any licensing constraints, it fits the variable usage pattern of these
applications.
For small and large ecommerce businesses, Amazon RDS provides a flexible, secured,
and low-cost database solution for online sales and retailing.
Mobile and online games require a database platform with high throughput and
availability. Amazon RDS manages the database infrastructure so that game
developers do not need to worry about provisioning, scaling, or monitoring database
servers.
DB instance
What is a DB instance?
6 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is a DB instance ?
7 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database instances and storage differ in performance characteristics and price so that
you can customize your performance and costs to the needs of your database. When
you choose to create a DB instance, you must first specify which database engine to
run. Amazon RDS currently supports the following databases: MySQL, Aurora,
Microsoft SQL Server, PostgreSQL, MariaDB, and Oracle.
Amazon RDS backup
Automatic Creates automated backups (data and transaction logs) of DB instances during the
backup window
Manual
Creates storage volume snapshots of your DB instances
8 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Because Amazon RDS is a fully managed service, one task that it automatically
performs is the periodic backup of a DB instance. The entire instance is backed up to
a storage volume snapshot during a specified backup window. It is retained according
to a specified backup retention period. The first snapshot of a DB instance contains
the full data. Subsequent snapshots are incremental and contain only the data that
changed since the most recent snapshot.
For more information about working with backups and managing Amazon RDS
backups and snapshots, see “Backing up and restoring an Amazon RDS DB instance”
at
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_CommonTasks.B
ackupRestore.html.
For more information about Amazon RDS, see Amazon RDS FAQs at
https://aws.amazon.com/rds/faqs/.
Easy Create method in Amazon RDS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
This section covers a sample configuration that uses the Easy Create method to
create a database in Amazon RDS. This section also examines some of the differences
between the Standard method and Easy Create method.
Creating a DB instance in Amazon RDS
• The easiest way to create a DB instance is to use the AWS Management Console.
• After you create the DB instance, you can use standard MySQL utilities—such as MySQL Workbench—to connect to a
database on the DB instance.
10 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
You can create a DB instance in Amazon RDS in two ways. The management console
offers an Easy Create method and a Standard method. If you choose to use the Easy
Create method, the configuration options are based on Amazon best practices. You
can specify a DB engine and instance size and can choose an identifier. You also have
an opportunity to select Standard to create your instance. You determine or choose
your configurations.
How to create a DB instance
MySQL example
1. In the Configuration section, choose
MySQL.
2. Complete the remaining steps that are
needed to answer the required
configuration questions, and then choose
Create.
3. Depending on the DB instance class and
the amount of storage, it can take up to
20 minutes before the new instance is
available.
11 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
This slide describes the main steps to create a DB instance using the Easy Create
method.
High availability with Amazon RDS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
13 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
One of the main features of Amazon RDS is that you can configure a database
instance with high availability by using a Multi-AZ deployment. This configuration
automatically generates a standby copy of the database instance in another
Availability Zone in the same virtual private cloud (VPC). After you make the initial full
copy, transactions are synchronously replicated to the standby copy. Running a
database in multiple Availability Zones can enhance availability during planned
system maintenance. It can help protect your database against database failure and
disruptions to Availability Zones.
In the diagram, an RDS DB instance is configured with high availability. The primary
instance runs in Availability Zone 1, and it serves requests from applications that run
in Availability Zones 1 and 2. The standby replica runs in Availability Zone 2, and it
provides data redundancy. It is synchronously replicated from the primary instance.
High availability with Multi-AZ deployment: Failover
VPC
Failover
14 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
If the primary database instance fails, Amazon RDS automatically brings the standby
database instance online as the new primary instance. Requests from both
applications are then directed to the new primary instance. The requesting
applications use the Amazon RDS Domain Name System (DNS) endpoint to reference
the database by name. As a result, the failover happens without needing to change
the application code. Also, notice that no data loss occurs because of the
synchronous replication.
Scalability with Amazon RDS
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPC
Features
• Asynchronous replication Availability Zone 1
• Ability to promote to the primary Public subnet
instance if needed
16 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Read replicas can also be promoted to become the primary DB instance. However,
because it uses asynchronous replication, this option requires manual action.
Read replicas can be created in a different Region from the primary DB instance. This
feature can direct reads to a read replica in a geographic area that is closer to the
user. Thus, it can help satisfy disaster recovery (DR) requirements or reduce latency.
For more information about scaling, refer to “Scaling Your Amazon RDS Instance
Vertically and Horizontally” at https://aws.amazon.com/blogs/database/scaling-your-
amazon-rds-instance-vertically-and-horizontally/.
For information about storage types, refer to “Working with storage for Amazon RDS
DB instances” at
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTy
pes.html.
For information about read replicas, refer to Amazon RDS Read Replicas at
https://aws.amazon.com/rds/details/read-replicas.
16
Amazon RDS scaling
17 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
You can also increase the capacity of a database server by changing its instance class
or storage capacity. By changing the instance class, you can increase the CPU and
memory that are available to the instance. By modifying the allocated storage, you
can increase storage capacity without incurring downtime.
18 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Review the Amazon RDS demonstration: Amazon Relational Database Service (RDS)
Console Demo.
You can find this video demonstration in the learning management system.
Aurora
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Aurora?
Aurora is a relational database engine.
Benefits of Aurora
• Aurora uses the same code, tools, and
applications as existing MySQL and PostgreSQL
databases.
• Aurora includes a high-performance storage
subsystem.
• An Aurora DB is created with clusters.
20 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Aurora?
• Aurora is part of the managed database service Amazon RDS. Aurora is a relational
database engine.
• A database engine is a service for storing, processing, and securing data.
• Aurora uses the same code, tools, and applications as existing MYSQL and
PostgreSQL databases.
• Aurora includes a high-performance storage subsystem. Its database engine is
customized to take advantage of that fast distributed storage.
• An Aurora DB has clusters that consist of one or more DB instances and a cluster
volume that manages the data for those DB instances.
An Aurora DB cluster
Aurora DB cluster
21 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
An Aurora DB cluster consists of one or more DB instances and a cluster volume that
manages the data for those DB instances.
An Aurora cluster volume is a virtual database storage volume that spans multiple
Availability Zones. Each Availability Zone has a copy of the DB cluster data.
Contents of an Aurora DB cluster
Two types of DB instances make up an Aurora DB
cluster.
Primary DB instance
The primary DB is the main instance. The instance allows
read and write operations and allows for data modification.
Aurora Replica
The Aurora Replica connects to the same storage volume
as the primary DB instance and supports only read
operations.
22 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enterprise applications Software as a service (SaaS) apps Online and mobile gaming
23 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enterprise applications
Compared to commercial databases, Aurora can help cut down your database costs
by 90 percent or more while improving the database’s reliability and availability.
The Aurora managed database offering provides benefits to SaaS applications. SaaS
companies can focus on building high-quality applications without worrying about the
underlying database that powers the application.
Because web and mobile games are built to operate at very large scale, they require a
database with high throughput and massive storage scalability.
What is one of the database engines that you can use in Amazon RDS?
What is Aurora?
24 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
1. What is one of the database engines that you can use in Amazon RDS?
• MySQL
• Aurora
• Microsoft SQL Server
• PostgreSQL
• MariaDB
• Oracle Database
2. What is Aurora?
25 © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Amazon RDS is a database service that makes it easy to set up, operate, and scale a
relational database in the cloud.
• Amazon RDS offers features for automated redundancy and backups.
• Amazon RDS supports an array of database engines, which includes Aurora,
PostgreSQL, MySQL, MariaDB, Oracle Database, and Microsoft SQL Server.
• Aurora is a database engine that is a highly available, performant, and cost-
effective managed relational database.
Thank you
© 2022 Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon Web Services, Inc.
Commercial copying, lending, or selling is prohibited. Corrections, feedback, or other questions? Contact us at https://support.aws.amazon.com/#/contacts/aws-training. All trademarks are the property of their
owners.
26