Databases: RDS, Aurora, DynamoDB, ElastiCache, Redshift

Relational and non-relational databases on AWS, from Amazon RDS, Aurora and DynamoDB to purpose-built databases, Redshift, and migrating with AWS DMS and AWS SCT.

GazeekAWS CLOUD PRACTITIONER·LESSON 18
LESSON 18

Databases: RDS, Aurora, DynamoDB, ElastiCache, Redshift

Relational and non-relational databases on AWS, from Amazon RDS, Aurora and DynamoDB to purpose-built databases, Redshift, and migrating with AWS DMS and AWS SCT.

0:00 / 4:56

After this lesson you can

  • Compare relational and non-relational databases
  • Describe Amazon RDS, including Multi-AZ and read replicas, and Amazon Aurora
  • Choose between Amazon RDS and Amazon DynamoDB for a workload
  • Match ElastiCache, MemoryDB, DocumentDB, Neptune and Redshift to their uses
  • Explain how AWS DMS and AWS SCT help migrate databases
Transcript

Databases: RDS, Aurora, DynamoDB, ElastiCache, Redshift

G'day mate. Space Llama here. Today, databases. We'll compare relational and non-relational, then meet RDS, Aurora and DynamoDB. Then the purpose-built databases, a data warehouse, and how to move a database to AWS.

Relational vs non-relational

A relational database stores data in tables, with rows and columns. You query it with SQL. It has a fixed schema, and joins pull related data together across tables. Non-relational databases, often called NoSQL, use flexible models like key-value, documents or graphs. They're built for huge scale and for specific ways of reading data.

Amazon RDS

Amazon Relational Database Service, or RDS, runs managed relational databases. You choose an engine. MySQL, PostgreSQL, MariaDB, Oracle, Microsoft SQL Server, IBM Db2, or Aurora. AWS handles patching, automated backups and the hardware underneath. Multi-AZ keeps a standby copy in another Availability Zone. If the primary fails, RDS fails over automatically. Read replicas are copies you can read from, which takes reading work off the primary.

Amazon Aurora

Amazon Aurora is AWS's own relational database, built for the cloud. It's part of RDS. It's compatible with MySQL and PostgreSQL, so existing apps can usually move across. It keeps six copies of your data across three Availability Zones. And Aurora Serverless scales database capacity up and down automatically.

Amazon DynamoDB

Amazon DynamoDB is a fully managed NoSQL database, for key-value and document data. It's serverless. No instances to choose, and it scales automatically. It gives single-digit millisecond performance at any scale. And global tables replicate your data across Regions, for apps with users all over the world.

Amazon RDS vs Amazon DynamoDB

So, RDS or DynamoDB? RDS stores relational tables with a fixed schema. It's the one for complex SQL queries and joins. And you choose a database instance size. DynamoDB stores key-value and document items. Its schema is flexible, and it's at its best fetching items by their key. It's serverless, and scales automatically with your traffic.

Purpose-built databases

Amazon ElastiCache is an in-memory cache, compatible with Valkey, Memcached and Redis OSS. It speeds up reads to microseconds. Amazon MemoryDB is a durable in-memory database. Fast like a cache, but your data is kept safe. Amazon DocumentDB is a document database, compatible with MongoDB. Amazon Neptune is a graph database, for highly connected data like social networks and fraud detection. Amazon Redshift is a data warehouse. It runs analytics queries across huge amounts of data.

Moving databases to AWS

You can run a database yourself on EC2. You get full control, but you install, patch and back it up yourself. With a managed service, AWS does those chores, and you focus on your data. AWS Database Migration Service, or DMS, moves your data with minimal downtime. The source database keeps running during the move. The AWS Schema Conversion Tool, or SCT, converts your schema when you change engines. Say, Oracle to PostgreSQL.

Recap

Let's recap. Relational databases use tables and SQL. Non-relational ones use flexible models. RDS and Aurora are managed relational databases, with Multi-AZ and read replicas. DynamoDB is serverless key-value, with single-digit millisecond performance. ElastiCache, MemoryDB, DocumentDB and Neptune are purpose-built, and Redshift is the data warehouse. And DMS and SCT help you migrate.

Practice and what's next

That's databases. A lot of names, but each one has a job. Practice Cloud Technology and Services questions in Gazeek Flash's AWS app. It's free on the web and on Android, at flash.gazeek.com. Next up, networking. See you there.

Gazeek Flash · free

Exam questions on your phone

Free questions on Cloud Technology and Services: quick-fire batches and timed exams, on the web or Android.