Back to Browse

129. Lambda Provisioned Concurrency

713 views
Aug 22, 2024
22:17

In this episode, we discuss AWS Lambda provisioned concurrency. We start with a recap of Lambda cold starts and the different concurrency control options. We then explain how provisioned concurrency works to initialize execution environments in advance to avoid cold starts. We cover how to enable it, pricing details, common issues like over/under-provisioning, and alternatives like self-warming functions or using other services like ECS and Fargate. 💰 SPONSORS 💰 This episode of AWS Bites is powered by fourTheorem. Whether you're looking to architect, develop, or modernize on AWS, fourTheorem has you covered. Ready to take your cloud game to the next level? Head to ⁠⁠⁠⁠https://fourtheorem.com⁠⁠⁠⁠⁠ to check out our in-depth articles, and case studies, and see how we can help transform your AWS journey. 🔖 Chapters: 00:00 Intro 01:03 Recap of Lambda cold starts 06:03 Reserved vs. provisioned concurrency 09:06 How provisioned concurrency works 10:48 Enabling provisioned concurrency 13:21 Provisioned concurrency pricing 14:53 Common issues and troubleshooting 16:59 Alternatives to provisioned concurrency 20:44 AWS might solve problems for you 21:28 Closing notes In this episode, we mentioned the following resources: - Episode 60: "What is AWS Lambda": https://awsbites.com/60-what-is-aws-lambda/ - Episode 104: "Explaining AWS Lambda Runtimes": https://awsbites.com/104-explaining-lambda-runtimes/ - Episode 108: "Solving Lambda Cold Starts in Python": https://awsbites.com/108-how-to-solve-lambda-python-cold-starts/ - Episode 120: "Lambda Best Practices": https://awsbites.com/120-lambda-best-practices/ - AWS Lambda Concurrency Explained by James Eastham: https://www.youtube.com/watch?v=KHACnNKTefI - Provisioned Concurrency pricing: https://aws.amazon.com/lambda/pricing/#Provisioned_Concurrency_Pricing - Less than 1% of invocations are cold-starts (statement): https://docs.aws.amazon.com/lambda/latest/operatorguide/execution-environments.html - Middy Warmup Middleware: https://middy.js.org/docs/middlewares/warmup/ - Lambda speculative warm-up init (mention in the Docs): https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtime-environment.html#:~:text=For%20functions%20using,on%20this%20behavior. - Episode 64: "How do you write Lambda Functions in Rust": https://awsbites.com/64-how-do-you-write-lambda-functions-in-rust - Episode 128: "Writing a book about Rust and Lambda": https://awsbites.com/128-writing-a-book-about-rust-and-lambda/ You can listen to AWS Bites wherever you get your podcasts: - Apple Podcasts: https://podcasts.apple.com/us/podcast/aws-bites/id1585489017 - Spotify: https://open.spotify.com/show/3Lh7PzqBFV6yt5WsTAmO5q - Google: https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy82YTMzMTJhMC9wb2RjYXN0L3Jzcw== - Breaker: https://www.breaker.audio/aws-bites - RSS: ​​https://anchor.fm/s/6a3312a0/podcast/rss Do you have any AWS questions you would like us to address? Leave a comment here or connect with us on X, formerly Twitter: - https://twitter.com/eoins - https://twitter.com/loige #AWS #Serverless #Lambda #coldstart

Download

1 formats

Video Formats

360pmp445.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

129. Lambda Provisioned Concurrency | NatokHD