AWS Builder Center
Module 8 of My AWS Cloud Foundations Journey
DATABASES

Module 8 of My AWS Cloud Foundations Journey DATABASES

Module 7 was about where data is kept. This one is about how it is organised, and what you can ask of it.

Series: My AWS Cloud Foundations Journey (8 articles)

  1. …
  2. 8
    Module 8 of My AWS Cloud Foundations Journey DATABASES This article
KEY CONCEPTS

Amazon RDS — Amazon Relational Database Service makes it easy to set up, operate and scale a relational database in the cloud. It provides cost-efficient and resizable capacity while automating time-consuming administration: hardware provisioning, database setup, patching and backups. Six engines to choose from — Amazon Aurora, Oracle, Microsoft SQL Server, PostgreSQL, MySQL and MariaDB.

Managed versus unmanaged
Unmanaged, these are yours: server maintenance and energy footprint, software installation and patches, database backups and high availability, limits on scalability, data security, operating system installation and patches.
As a managed service, AWS handles: operating system installation and patches, database software installation and patches, database backups, high availability, scaling, power and racking and stacking servers, server maintenance.

The DB instance — The basic building block of Amazon RDS. An isolated database environment that can contain multiple user-created databases. You choose the instance class, the storage type, and which engine to run.

Multi-AZ — Configure a Multi-AZ deployment and RDS automatically generates a standby copy of the DB instance in another Availability Zone within the same VPC. After the copy is seeded, transactions are replicated synchronously to the standby. If the main instance fails, RDS automatically brings the standby online as the new main instance.

Read replicas — Updates made to the source DB instance are copied asynchronously to the read replica. Routing read queries from your applications to the replica reduces the load on the source DB instance.

When to use RDS — Complex transactions or complex queries. A medium to high query or write rate, up to 30,000 IOPS — 15,000 reads plus 15,000 writes. No more than a single worker node or shard. High durability.

When not to use it — Massive read and write rates, for example 150,000 writes per second. Sharding, because of high data size or throughput demands. Simple GET or PUT requests and queries that a NoSQL database can handle. Relational database management system customisation.

Amazon DynamoDB — A fast and flexible NoSQL database service for any scale. NoSQL database tables with no limits. Virtually unlimited storage. Items can have differing attributes. Low-latency queries. Scalable read and write throughput with no limits. Supports document and key-value store models. Replicates your tables automatically across your choice of AWS Regions. Provides consistent, single-digit millisecond latency at any scale. Works well for mobile, web, gaming, adtech and Internet of Things applications.

Amazon Redshift — A fully managed, petabyte-scale data warehouse service in the cloud. The service manages the work of setting up, operating and scaling a data warehouse: provisioning capacity, monitoring and backing up the cluster, and applying patches and upgrades to the engine. Columnar storage and parallel processing architectures. Automatically and continuously monitors the cluster. Encryption is built in.

Amazon Aurora — A MySQL- and PostgreSQL-compatible relational database built for the cloud, combining the performance and availability of traditional enterprise databases with the simplicity and cost-effectiveness of open source databases. A distributed, fault-tolerant, self-healing storage system that auto-scales up to 64 TB per database instance. Up to fifteen low-latency read replicas, point-in-time recovery, continuous backup to Amazon S3, and replication across three Availability Zones. Automates provisioning, patching, backup, recovery, failure detection and repair.

Choosing between them
Amazon RDS — complex transactions or complex queries, a medium to high query or write rate, a single worker node, high durability.
Amazon Aurora — one of the six engines available within RDS, for applications compatible with MySQL or PostgreSQL.
Amazon DynamoDB — simple GET or PUT requests and queries, and read or write rates beyond what RDS is built for. Mobile, web, gaming, adtech and IoT applications.
Amazon Redshift — a petabyte-scale data warehouse.

Connecting it
Each module adds a question to ask about any AWS service. Where it sits between IaaS and SaaS. What drives its cost. Where it physically runs. Where my responsibility begins. What can reach it, and by what route.
This one adds a question about the data itself: what shape is it, and what will be asked of it?

Part of my AWS Academy Cloud Foundations learning series.

Series: My AWS Cloud Foundations Journey (8 articles)

  1. …
  2. 8
    Module 8 of My AWS Cloud Foundations Journey DATABASES This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article