Tiny, fast ASP.NET Core APIs with native AOT | .NET Conf 2023

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • НаукаНаука

Комментарии • 15

  • @QINGCHARLES
    @QINGCHARLES Год назад +15

    @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😂

  • @alirezanet
    @alirezanet Год назад +13

    About the demo issue you had, I think you just forgot to save your csproj file 😊 (usual live demo problem)

    • @hero3616
      @hero3616 Год назад +2

      That is correct

    • @jim2lane
      @jim2lane 11 месяцев назад +2

      Exactly - live demo, what could possibly go wrong? 😉

  • @benyahiahassen4540
    @benyahiahassen4540 5 месяцев назад +1

    About the issue you had, you should change what you wrote in the config to true not true

  • @realivanjx
    @realivanjx Год назад +4

    i hope blazor server gets native aot support asap! nice work!

  • @jarosawfrankowski7845
    @jarosawfrankowski7845 Год назад +2

    Great introduction to AOT, Damian that was great presentation! 😊

  • @idzyubin720
    @idzyubin720 10 месяцев назад

    @dotnet Great explanation! Is there any link how can I validate request model in Minimal API with Native AOT?

  • @BredoLab
    @BredoLab Год назад +3

    Can somebody explain how Native AOT is beneficial for server-side apps and minimal API in particular?

    • @jinhuisong8727
      @jinhuisong8727 Год назад +11

      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.

    • @freddydev3562
      @freddydev3562 Год назад

      xdxdxd@@jinhuisong8727

    • @alex22932
      @alex22932 Год назад +5

      Also where you can scale containers to zero such as Azure Container Apps and Google Cloud Run.

    • @serverlessjames
      @serverlessjames Год назад

      If you want to see this in action with .NET and AWS Lambda I've got another video on RUclips. Crazy cold start numbers.
      ruclips.net/video/kyb16r-Oul0/видео.html

    • @Sindrijo
      @Sindrijo 8 месяцев назад

      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.