Gehen Sie mit der App Player FM offline!
108. How to Solve Lambda Python Cold Starts
Manage episode 389516288 series 2980070
In this episode, we discuss how you can use Python for data science workloads on AWS Lambda. We cover the pros and cons of using Lambda for these workloads compared to other AWS services. We benchmark cold start times and performance for different Lambda deployment options like zip packages, layers, and container images. The results show container images can provide faster cold starts than zip packages once the caches are warmed up. We summarize the optimizations AWS has made to enable performant container image deployments. Overall, Lambda can be a good fit for certain data science workloads, especially those that are bursty and need high concurrency.
đ° SPONSORS đ° AWS Bites is brought to you by fourTheorem, an Advanced AWS Partner. If you are moving to AWS or need a partner to help you go faster, check us out at fourtheorem.com ! In this episode, we mentioned the following resources.
- Our blog post detailing our research on how to optimise Python Data Science in AWS Lambda: https://fourtheorem.com/optimise-python-data-science-aws-lambda/
- The repository with our benchmarks and related visualizations: https://github.com/fourTheorem/lambda-datasci-perf
- On-demand Container Loading on AWS Lambda (AWS Paper): https://arxiv.org/abs/2305.13162
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â â
140 Episoden
Manage episode 389516288 series 2980070
In this episode, we discuss how you can use Python for data science workloads on AWS Lambda. We cover the pros and cons of using Lambda for these workloads compared to other AWS services. We benchmark cold start times and performance for different Lambda deployment options like zip packages, layers, and container images. The results show container images can provide faster cold starts than zip packages once the caches are warmed up. We summarize the optimizations AWS has made to enable performant container image deployments. Overall, Lambda can be a good fit for certain data science workloads, especially those that are bursty and need high concurrency.
đ° SPONSORS đ° AWS Bites is brought to you by fourTheorem, an Advanced AWS Partner. If you are moving to AWS or need a partner to help you go faster, check us out at fourtheorem.com ! In this episode, we mentioned the following resources.
- Our blog post detailing our research on how to optimise Python Data Science in AWS Lambda: https://fourtheorem.com/optimise-python-data-science-aws-lambda/
- The repository with our benchmarks and related visualizations: https://github.com/fourTheorem/lambda-datasci-perf
- On-demand Container Loading on AWS Lambda (AWS Paper): https://arxiv.org/abs/2305.13162
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â â
140 Episoden
Alle Folgen
×Willkommen auf Player FM!
Player FM scannt gerade das Web nach Podcasts mit hoher QualitĂ€t, die du genieĂen kannst. Es ist die beste Podcast-App und funktioniert auf Android, iPhone und im Web. Melde dich an, um Abos gerĂ€teĂŒbergreifend zu synchronisieren.