Tiny, fast ASP.NET Core APIs with native AOT | .NET Conf 2023
Вставка
- Опубліковано 14 лис 2023
- .NET 8 introduces support for publishing ASP.NET Core applications to native AOT for lightning-fast startup times & small, self-contained, native executables & containers. This session will provide an overview of when you might want to consider publishing native AOT for your ASP.NET Core APIs and demonstrate the benefits and compatibility considerations.
Download .NET 8 - aka.ms/get-dotnet-8
Hack Together - aka.ms/hacktogether/dotnet
Learn collection - aka.ms/learn-dotnet-8
.NET 8 Survey - aka.ms/dotnet-survey
Local Events - aka.ms/dotnetconf-local-event
Hero blog - aka.ms/dotnet8blog
Blog: aka.ms/dotnet/blog
Twitter: aka.ms/dotnet/twitter
TikTok: aka.ms/dotnet/tiktok
Mastodon: aka.ms/dotnet/mastodon
LinkedIn: aka.ms/dotnet/linkedin
Facebook: aka.ms/dotnet/facebook
Docs: learn.microsoft.com/dotnet
Forums: aka.ms/dotnet/forums
🙋♀️Q&A: aka.ms/dotnet-qa
👨🎓Microsoft Learn: aka.ms/learndotnet
#dotnet - Наука та технологія
@dotnet Sending Damian a hug🤗I felt so bad for him when it wouldn't build live in front of the world. We've all been there😂
About the demo issue you had, I think you just forgot to save your csproj file 😊 (usual live demo problem)
That is correct
Exactly - live demo, what could possibly go wrong? 😉
Great introduction to AOT, Damian that was great presentation! 😊
i hope blazor server gets native aot support asap! nice work!
@dotnet Great explanation! Is there any link how can I validate request model in Minimal API with Native AOT?
Can somebody explain how Native AOT is beneficial for server-side apps and minimal API in particular?
For example, AWS Lambda or Azure Function , all of these serverless apps had cold start. The cold start will take lots of time to let code ready. Java or C# maybe take 1-3 seconds, python only use 500 milliseconds. Use AOT C# also can use 500 milliseconds for cold start.
xdxdxd@@jinhuisong8727
Also where you can scale containers to zero such as Azure Container Apps and Google Cloud Run.
If you want to see this in action with .NET and AWS Lambda I've got another video on UA-cam. Crazy cold start numbers.
ua-cam.com/video/kyb16r-Oul0/v-deo.html
C# app normally is distributed as IL-bytecode (Intermediary Language) that when 'executed' the environment first has to load the CLR which then will compile the IL-bytecode into native code/instructions that then gets executed. With AOT this final compilation happens 'ahead of time' avoiding the previously described steps of loading the CLR and compiling the IL-bytecode to native code, instead the code just gets executed immediately.
About the issue you had, you should change what you wrote in the config to true not true