← Back to list

Day 57 -Amazon DynamoDB: The NoSQL Database Built for Speed and Scale

👋 Hello Everyone,

Poonam Hajare · 2025-12-02 16:31 · 0 claps · 2.0 min read
#amazon-dynamodb #dynamodb #aws-dynamodb #aws #cloud-computing
Open on Medium ↗
Wiki topics: ☁️ · DevOps & Cloud

Day 57 -Amazon DynamoDB: The NoSQL Database Built for Speed and Scale

👋 Hello Everyone,

Welcome back to my AWS Journey Series!

Modern applications need databases that can handle millions of requests, scale automatically, and still maintain low latency. That’s where Amazon DynamoDB shines.

DynamoDB is AWS’s fully managed NoSQL key-value and document database designed for high performance at any scale.

Let’s explore how it works and why it’s used in modern cloud applications.

🔹 What is DynamoDB?

➥ DynamoDB is a serverless NoSQL database that delivers:

  • Single-digit millisecond performance
  • Automatic scaling
  • High availability across multiple AZs
  • No servers to manage
  • Pay-per-use pricing

➥ It supports Key-Value and Document data models, making it flexible for many workload types.

🔹 Key Features of DynamoDB

  • Fully Managed : No servers, no maintenance
  • Autoscaling : Dynamically adjusts read/write capacity
  • Multi-AZ Replication : High availability & durability
  • On-Demand Mode : Pay per request
  • Streams : Real-time event capture
  • Global Tables : Multi-region replication
  • TTL : Auto-delete expired items

🔹 How DynamoDB Stores Data

  • DynamoDB stores data in tables, but unlike SQL databases, it does not use relationships or joins.
  • A table contains Items (rows) and each item contains Attributes (columns).

➥ Each table must have:

1. Primary Key

➥ Used to uniquely identify items.

➥ Types:

  • Partition Key (simple primary key)
  • Partition Key + Sort Key (composite primary key)

Example

  • UserID (PK)OrderID (SK)AmountStatus101A1500Paid101A2300Pending

➥ This helps in fast queries like:

👉 Get all orders for user 101 👉 Get orders sorted by OrderID

🔹 Read/Write Capacity Modes

➥ DynamoDB has two main modes:

1. On-Demand

  • No capacity planning
  • Pay only for read/write requests
  • Best for unpredictable workloads

2. Provisioned

  • Manually set RCU/WCU
  • Use Autoscaling if needed
  • Best for predictable traffic

🔹 DynamoDB Streams

➥ Streams capture real-time changes in your table.

➥ Useful for:

  • Lambda triggers
  • Audit logs
  • Replication
  • Real-time analytics

➥ Example:

  • If a new user is added, a Lambda function can automatically send a welcome email.

🔹 Global Tables

➥ Global Tables replicate your DynamoDB table across multiple AWS regions.

➥ Benefits:

  • Low latency for international users
  • Automatic conflict resolution
  • Global disaster recovery

🔹 TTL (Time-to-Live)

➥ TTL automatically deletes expired items from the table.

➥ Use cases:

  • Session storage
  • Temporary logs
  • Cache expiration
  • Token storage

🔹 Common Use Cases of DynamoDB

  • Serverless applications
  • E-commerce apps
  • Gaming leaderboards
  • IoT data ingestion
  • Real-time chat apps
  • Microservices architecture
  • Authentication sessions

🔹 Example: Creating a DynamoDB 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

🔹 Hands-On Demo (Simple Use Case)

1. Create Table

  • Table Name: Student
  • Primary Key: RollNo

2. Insert Item

aws dynamodb put-item \
--table-name Student \
--item '{"RollNo": {"N": "1"}, "Name": {"S": "Poonam"}, "Dept": {"S": "CSE"}}'

3. Read Item

aws dynamodb get-item \
--table-name Student \
--key '{"RollNo": {"N": "1"}}'

🔹 Final Thoughts

DynamoDB is one of the most powerful serverless databases in the cloud ecosystem. Its speed, scalability, and flexibility make it ideal for modern applications.

If you’re building AWS Lambda, serverless APIs, IoT, or microservices, DynamoDB is a perfect match.


메타데이터
post_id
13992df9e916
slug
day-57-amazon-dynamodb-the-nosql-database-built-for-speed-and-scale-13992df9e916
url
https://medium.com/@hajarepoonam2002/day-57-amazon-dynamodb-the-nosql-database-built-for-speed-and-scale-13992df9e916
canonical_url
https://medium.com/@hajarepoonam2002/day-57-amazon-dynamodb-the-nosql-database-built-for-speed-and-scale-13992df9e916
author_url
https://medium.com/@hajarepoonam2002
status
ok
fetched_at
2026-07-25 20:01:13