ADVERTISEMENT
Google AdSense Slot (headerLeaderboard)

Set your Publisher ID in src/config/ads.ts to display live ads.

AWS Cloud Computing Tutorial• 7 min read

AWS Databases: RDS & DynamoDB

Managed relational databases (PostgreSQL, MySQL, Aurora) vs Serverless NoSQL DynamoDB

AWS provides managed database solutions: Amazon RDS for relational ACID data and DynamoDB for single-digit millisecond serverless NoSQL key-value lookups.

RDS vs DynamoDB Architecture

Amazon RDS: Fully managed relational database service supporting PostgreSQL, MySQL, MariaDB, Oracle, and SQL Server. Features Multi-AZ synchronous replication for automatic failover and read replicas for horizontal scale.

Amazon Aurora: AWS-native MySQL/PostgreSQL-compatible engine with a cloud-distributed storage subsystem delivering 5x the throughput of standard MySQL.

Amazon DynamoDB: Fully managed NoSQL key-value and document database delivering consistent single-digit millisecond latency at any scale with automatic horizontal sharding.

Querying DynamoDB with AWS SDK v3
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import { DynamoDBDocumentClient, GetCommand } from "@aws-sdk/lib-dynamodb";

const client = new DynamoDBClient({ region: "us-east-1" });
const docClient = DynamoDBDocumentClient.from(client);

// Fast key-value lookup
const command = new GetCommand({
  TableName: "Users",
  Key: { userId: "usr_4920" }
});

const response = await docClient.send(command);
console.log("User record:", response.Item);
DynamoDB provides consistent low-latency retrieval by partition key.
ADVERTISEMENT
Google AdSense Slot (inContentBanner)

Set your Publisher ID in src/config/ads.ts to display live ads.

Test Yourself With Exercise

+15 XP

Which AWS database service provides fully managed, serverless NoSQL document and key-value storage with single-digit millisecond latency?