Upgrade to Pro — share decks privately, control downloads, hide ads and more …

3 Ways to Improve Serverless Performance

Yan Cui
April 30, 2024

3 Ways to Improve Serverless Performance

Join us for an insightful webinar as we explore strategies for optimizing AWS Lambda performance. In this session, Yan Cui, AWS Serverless Hero, and Aviad Mor, Co-founder and CTO of Lumigo, will discuss three approaches that can significantly enhance the efficiency and scalability of your serverless applications.

Discover how to streamline your AWS Lambda functions to achieve better performance, reduce latency, and minimize costs. We’ll share practical tips and best practices gleaned from real-world experiences, empowering you to maximize the potential of serverless computing on AWS.

Yan Cui

April 30, 2024
Tweet

More Decks by Yan Cui

Other Decks in Technology

Transcript

  1. 5

  2. 128MB Don’t blame me for a bit Lambda bill… I’m

    just calling an API, 128MB is fi ne!
  3. L1 cache L2 cache Main memory SSD disk 0.5 ns

    7.0 ns 100.0 ns 10,000,000.0 ns (10 ms)
  4. $10.836 1 msg/s for a month, 1KB per msg 1

    x 60s x 60m x 24hr x 30days @ $0.014 per mil + 24hrs x 30days @ $0.015 per shard per hr $2.592 SNS SQS EventBridge Kinesis Provisioned 1 x 60s x 60m x 24hr x 30days @ $1.00 per mil 1 x 60s x 60m x 24hr x 30days @ $0.40 per mil 1 x 60s x 60m x 24hr x 30days @ $0.50 per mil $1.037 $1.296 Kinesis On-Demand 1kb x 60s x 60m x 24hr x 30days @ $0.08 per GB ingested + 24hrs x 30days @ $0.04 per stream per hr $28.998
  5. $47.088 1,000 msg/s for a month, 1KB per msg 1000

    x 60s x 60m x 24hr x 30days @ $0.014 per mil + 24hrs x 30days @ $0.015 per shard per hr $2592.00 SNS SQS EventBridge Kinesis Provisioned 1000 x 60s x 60m x 24hr x 30days @ $1.00 per mil 1000 x 60s x 60m x 24hr x 30days @ $0.40 per mil 1000 x 60s x 60m x 24hr x 30days @ $0.50 per mil $1036.80 $1296.00 Kinesis On-Demand 1000kb x 60s x 60m x 24hr x 30days @ $0.08 per GB ingested + 24hrs x 30days @ $0.04 per stream per hr $226.55
  6. 1. Right-sizing Lambda functions. 2. Code optimizations. 3. Caching. 4.

    Choosing the right service. 5. Observability.