DynamoDB Demo

checking…

Products

IDNameCategoryPriceStockDescriptionActions
Loading…

Orders

Order IDCustomerProductQtyStatusTotalCreatedActions
Loading…

Query vs Scan Demo

These operations hit the real DynamoDB Local API and return metadata showing how many items were scanned vs returned.

Scan

Reads every item in the Products table. Cost = table size.

Scan + FilterExpression

Scans everything, then filters. scanned_count > returned_count.

Scan + Filter by Customer

Orders table: PK=orderId, SK=customerId.
Querying by SK alone needs a GSI. This demo uses Scan + FilterExpression to show the cost difference.

Advanced Operations + Real-time

Person 3 demo on the same Products and Orders tables: batch writes, conditions, transactions, TTL, Streams/Lambda, and DAX-style cache.

A) BatchWriteItem

Import demo products into the existing Products table.

B) Conditional Insert

B) Conditional Stock

C) TransactWriteItems

D) TTL

E) Streams + Lambda

Simulate DynamoDB Streams events and invoke a Lambda-style handler locally.

F) DAX Cache

Last Advanced Result

No action yet.

Products used by Advanced tab

IDNameStockPrice
Loading…

Advanced orders

OrderCustomerProductStatus
Loading…

TTL sessions

SessionUserexpiresAt
Loading…
Cache keys: none

NoSQL Workbench Connection

Connect NoSQL Workbench to the running DynamoDB Local instance:

  1. Open NoSQL WorkbenchAmazon DynamoDBAdd connection
  2. Select DynamoDB local
  3. Set Port to 8000
  4. Click Connect

AWS CLI / SDK Config

# Environment variables (already set in Docker)
AWS_ACCESS_KEY_ID=local
AWS_SECRET_ACCESS_KEY=local
AWS_DEFAULT_REGION=us-east-1
DYNAMODB_ENDPOINT=http://localhost:8000

# AWS CLI — example
aws dynamodb list-tables \
  --endpoint-url http://localhost:8000 \
  --region us-east-1

Tables

TablePKSKGSI
ProductsproductId (S)CategoryIndex on category
OrdersorderId (S)customerId (S)