.Net Lambda Functions Cold Start | Comparison with Node and Python | Is it bad and how to reduce it?

  Рет қаралды 142

Dev Planet

Dev Planet

5 ай бұрын

.Net lambda functions are often perceived to be suffering from a bad cold start. But is there some substance to this perception? In this video, I discuss an experiment I have done to calculate the cold-start time of a simple .Net Lambda function and compare it with the equivalent Node.js and Python functions.
For those new to the serverless arena, I briefly discuss what we mean by the cold and warm start of the Lambda functions, and the role of the creation of the function’s execution environment. I also talk about the Lambda functions invocation models (Synchronous, Asynchronous, and Polling) and how they make the cold start more or less noticeable. I describe some simple architectures using these invocation models and give a demo of a synchronous invocation model and how a cold start feels like when using this architecture.
Finally, I discuss some strategies to reduce the cold start of a .Net Lambda function.
Time markers:-
01:13 What is a cold and warm start?
02:31 Lambda Execution Environment Lifecycle
04:40 Lamba Functions Invocation Models
06:14 Some AWS architectures using different invocation models
07:53 Demo of a .Net Lambda function cold-start
09:39 My experiment to calculate the cold start of a .Net, Node.js, and Python Lambda function
12:35 Some strategies to reduce the cold start duration of a .Net Lambda function
Further readings:-
Lambda execution environments:
docs.aws.amazon.com/lambda/la...
docs.aws.amazon.com/lambda/la...
.Net 7 Native AOT compilation:
docs.aws.amazon.com/lambda/la...
System.Text.Json source-generated serialization:
learn.microsoft.com/en-us/dot...
Unix Epoch Time:
currentmillis.com/ Github repo link (source code for all the Lambda functions used in this video):- github.com/DevPlanet-cloud/Do...

Пікірлер: 7
@SenBhai
@SenBhai 3 ай бұрын
Thank you for information. Now I am planning to use .Net 8 for AWS Lamda. Hope .Net 8 will be better than Node.js
@jay_s9645
@jay_s9645 Ай бұрын
Nice!!! Could you please also make video on all those strategies you have mentioned to use for reducing cold start duration.
@VasanthaKrishnan-mb2sz
@VasanthaKrishnan-mb2sz 5 ай бұрын
Very cool vedio
@DevPlanet-cl0ud
@DevPlanet-cl0ud 5 ай бұрын
Thanks
@adeelmughal7062
@adeelmughal7062 5 ай бұрын
❤❤❤❤
@SenBhai
@SenBhai 2 ай бұрын
Could you please share used source code via Github ?
@DevPlanet-cl0ud
@DevPlanet-cl0ud 2 ай бұрын
Thanks for the interest. I've uploaded the source code for all the Lambda functions used in this video at github.com/DevPlanet-cloud/DotNet-Lambda-ColdStart-Measure
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 865 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 121 М.
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 12 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
GIANT umbrella by Tsuriki Show
00:15
Tsuriki Show
Рет қаралды 6 МЛН
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 210 М.
Amazon Bedrock Generative AI Email Spam Filter
20:04
Ian Ryan
Рет қаралды 81
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1,1 МЛН
What are AI Agents?
12:29
IBM Technology
Рет қаралды 126 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 262 М.
3 .NET "Best Practices" I Changed My Mind About
10:16
Nick Chapsas
Рет қаралды 102 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 257 М.
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 12 МЛН