
Professional GUI Client for DynamoDB https://nitter.cf/t.co/nqS5b8GVKr
Joined January 2020
- Tweets401
- Following67
- Followers1.3K
- Likes371
DynamoDB GSI vs LSI:
GSI
- any partition + sort key
- add or drop anytime
- eventually consistent reads only
LSI
- same partition key, new sort key
- only at table creation
- strongly consistent reads too
- 10 GB cap per partition key
Default to GSI. LSI only for strong reads.
88
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
145
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
85
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.
89
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
161
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?
93








