| name | dynamodb |
| description | AWS DynamoDB serverless NoSQL with streams and global tables. Use for AWS serverless. |
Amazon DynamoDB
DynamoDB is a fully managed, serverless, key-value NoSQL database designed to run high-performance applications at any scale (Single-digit millisecond latency).
When to Use
- Serverless Apps: The default DB for AWS Lambda.
- Infinite Scaling: Handles petabytes of data without maintenance.
- Shopping Carts / Sessions: High throughput, simple key access.
Quick Start (AWS SDK v3)
import { DynamoDBClient, PutItemCommand } from "@aws-sdk/client-dynamodb";
const client = new DynamoDBClient({});
const command = new PutItemCommand({
TableName: "Users",
Item: {
PK: { S: "USER#123" },
SK: { S: "PROFILE" },
Name: { S: "Alice" },
},
});
await client.send(command);