Skill 4.3.7
Optimize application resource usage
Key Concepts
Reuse connections and SDK clients, batch requests (SendMessageBatch, BatchWriteItem, PutRecords), and use long polling for SQS. Choose efficient compute such as Arm-based Graviton for Lambda and containers, right-size memory and instances, and use Auto Scaling so capacity follows demand.
For data, use queries instead of scans, project only needed attributes, pick on-demand or provisioned capacity to match traffic, compress payloads and move cold data to cheaper storage classes. Event filtering ensures functions only run for relevant events.