
Professional GUI Client for DynamoDB https://teapaw.org/t.co/nqS5b8GVKr
Joined January 2020
- Tweets394
- Following67
- Followers1.3K
- Likes371
Unpopular opinion: don't add DynamoDB GSIs on day one "just in case".
Every GSI copies your writes and bills them again. You can add one to a live table any time; it backfills from the base table.
Ship with the access patterns you have. Add the index when a real query needs it.
1
119
DynamoDB TTL vs DeleteItem:
TTL
- free, no write capacity
- usually gone within a few days of expiry
- expired items still appear in reads
DeleteItem
- costs write capacity
- immediate
- supports a condition expression
Using TTL? Filter out expired items until it catches up.
1
80
Before you Scan a whole production DynamoDB table:
1. Check size (Scan reads every item)
2. Split it with Segment/TotalSegments
3. Use eventually consistent reads (half the RCU)
4. Pace it so live traffic isn't throttled
5. Save LastEvaluatedKey to resume
Huge? Export to S3.
87
Unpopular opinion: dev, staging and prod DynamoDB tables shouldn't share an AWS account.
Prefixes like dev-orders are one typo away from a prod write. Separate accounts give each environment its own IAM boundary, quotas and bill.
Prefixes are naming. Accounts are isolation.
2
159
Which DynamoDB limit surprised you first in production?
• 400 KB max item size
• 1 MB max per Query or Scan page
• 25 items per BatchWriteItem call
• 10 GB per partition key once a table has an LSI
Or one that isn't on this list?
92
What actually happens when you call DeleteItem in DynamoDB?
It looks like the simplest write. It still costs capacity, touches your indexes and can leave a trail. 🧵
Before you restore a DynamoDB table from a backup or PITR:
1. Pick a new table name (a restore never overwrites)
2. Recreate auto scaling and alarms
3. Re-enable TTL and Streams
4. Re-apply tags and IAM policies
5. Turn PITR on for the new table
None of these carry over.
84
Counterintuitive DynamoDB fact: a GSI can throttle writes to your base table.
Writes that touch indexed attributes are copied to the GSI. If the index runs short on write capacity, the table write is throttled too.
On provisioned tables, give each GSI at least the table's WCU.
1
3
111









