Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
AWS Cloud Computing Cloud Computing: From Zero to Production Database Module 4 — Storage & Databases

DynamoDB — NoSQL Database for Any Scale

Reviewed & accurate
AI Summary

What You Will Learn

Intermediate

  • What DynamoDB is
  • How it differs from RDS (SQL)
  • When to use DynamoDB

DynamoDB is a fully managed NoSQL database. No servers to manage, automatically scales, single-digit millisecond latency at any scale.

AspectRDS (SQL)DynamoDB (NoSQL)
SchemaFixed (tables, columns)Flexible
ScalingManual (bigger instance)Automatic
QueriesSQL (JOIN, etc.)Key-value, simple queries
LatencyVariable< 10ms at any scale
Free tier750 hrs (12 mo)25 GB (always free)
Terminalbash
# Create a table
aws dynamodb create-table \
  --table-name Users \
  --attribute-definitions AttributeName=userId,AttributeType=S \
  --key-schema AttributeName=userId,KeyType=HASH \
  --billing-mode PAY_PER_REQUEST

Practical Exercise

Go to DynamoDB -> Create table
Name it "Users", partition key "userId" (String)
Use on-demand billing (pay per request)
Add an item: {"userId": "1", "name": "Anita"}
Scan the table: aws dynamodb scan --table-name Users

Key Takeaways

  • DynamoDB = serverless NoSQL database.
  • Always free: 25 GB storage forever.
  • Automatic scaling, <10ms latency.
  • Flexible schema — no fixed columns.
  • Best for: key-value lookups, user profiles, session data.
Previously: Lesson 27 covered RDS.
Today: You learned: Serverless NoSQL database at any scale.
Next: Lesson 29 covers Aurora.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments