This document contains a summary of best practices for using Lambda and DynamoDB presented by Yan Cui. Some key recommendations include implementing observability from the start by using metrics and alerts to monitor performance, creating separate AWS accounts for each team and environment, loading secrets securely from SSM Parameter Store at runtime, following the principle of least privilege with IAM policies, parallelizing functions where possible, and various DynamoDB optimizations like using DocumentClient and PAY_PER_REQUEST billing. The document emphasizes that best practices depend on individual contexts and situations.
55. no. of DynamoDB tables
no. of API Gateway regional APIs
no. of API Gateway edge-optimized APIs
no. of Kinesis shards
no. of IAM roles
no. of S3 buckets
no. of CloudFormation stacks
no. of SNS subscription filters
no. of SSM parameters
…
Resource Limits
141. single-table design
Steep learning curve.
Difficult to add new access patterns.
Can’t monitor usage cost by entity type.
Difficult to use DynamoDB streams.
142. “But what about all the cost savings from Single-Table Design?!”
143. “But what about all the cost savings from Single-Table Design?!”
Only matters when running at scale.
144. The “goodness” of a practice is tied to
the context in which it is applied