1、 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.C N S 3 6 4Serverless Cost Optimization:More from Every InvokeJeff GebhartSr Specialist TAM-ServerlessHe/HJay FormosaTechnical Account ManagerHe/H 2025,Amazon Web Se
2、rvices,Inc.or its affiliates.All rights reserved.2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.What are we trying to solve?Understanding Serverless Costs 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.Serverless Costs v.Traditional IT Different than tradition
3、al IT costsTraditional IT means you pay for time(ie.$/month)Serverless you pay per use($/million invokes)Challenging to budgetCannot say“App will cost$/mo to operate”Pay per use tends to scale cost along with revenueAllows you to develop at very low costs,and incur costs only once youre getting traf
4、fic!2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.Part 1:Lambda Code Cost Optimization X86 to ARM Memory Configuration and Lambda Power Tuning Handler vs.INIT Multithreading/Async and Batching 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.Part 2:Lambda Archi
5、tecture Cost Optimization 2025,Amazon Web Services,Inc.or its affiliates.All rights reserved.Part 3:New Lambda Features Lambda Managed Instances:New Cost Model Capacity Providers EC2 Cluster managed by Lambda Service Autoscaling cluster Does not scale to zero Retains at least 1 EC2 instance in each
6、Availability Zone Pay for invokes($0.20/million)Pay for EC2 costs,including RI/SP discounts+15%of base instance cost for management No GBs cost Use for steady utilization or predictable scaling workloads 2025,Amazon Web Services,Inc.or its affiliates.All right