Selection - Serverless Applications Lens

Selection

PER 1: How have you optimized the performance of your serverless application?

Run performance tests on your serverless application using steady and burst rates. Using the result, try tuning capacity units and the provisioning model, and load test after changes to help you select the best configuration:

  • Amazon API Gateway: Use Edge endpoints for geographically dispersed customers. Use Regional for regional customers and when using other AWS services within the same Region.

  • AWS Lambda: Test different memory settings since CPU, network, and storage IOPS are allocated proportionally. Optimize static initialization and consider provisioned concurrency.

  • AWS Step Functions: Test Standard and Express Workflows, consider the per second rates for both execution start rate and state transition rate.

  • Amazon DynamoDB: Use on-demand for unpredictable application traffic, otherwise provisioned mode for consistent traffic.

  • Amazon Kinesis: Use enhanced-fan-out for dedicated input/output channels per consumer in multiple consumer scenarios. Use an extended batch window for low volume transactions with Lambda.