[{"data":1,"prerenderedAt":89},["ShallowReactive",2],{"reinvent2026-svs344":3},{"id":4,"title":5,"YouTubeChannelID":6,"banner":6,"contributors":7,"description":6,"extension":10,"introBox":11,"meta":14,"pdf":15,"resources":18,"stem":87,"type":6,"video":6,"videos":6,"__hash__":88},"reinvent2026\u002Freinvent2026\u002Fsvs344.json","SVS344: Modernizing .NET to Serverless: Native AOT and SnapStart, live.",null,[8,9],"content\u002Fcontributors\u002Fdoug-perkes.json","content\u002Fcontributors\u002Flasse-christiansen.json","json",{"headline":12,"text":13},"Resources for SVS344: Modernizing .NET to Serverless: Native AOT and SnapStart, live.","Cold starts and JIT warmup have long made .NET on AWS Lambda a harder fit for serverless execution patterns. Native AOT and SnapStart on .NET 10 close that gap, but modernization isn't flip-a-switch. In this code talk we modernized a .NET function to Native AOT live, watched it fail, and fixed it on stage: serialization with source generators, reflection-based DI replaced, and trimming warnings resolved.\u003Cbr>\u003Cbr>This page has the slides, plus documentation, blog posts, videos and tools for each topic of the talk.",{},{"source":16,"headline":17},"https:\u002F\u002Fserverlessland.s3.us-east-1.amazonaws.com\u002Fpdf\u002Freinvent2026\u002Fsvs344.pdf","Slides from the presentation",{"left":19,"right":55},[20,27,50],{"headline":21,"subheading":22,"text":23,"button":24},"Session code repository","GitHub repo","Sample code for the session: .NET Lambda cold start optimization with Native AOT and SnapStart.",{"text":25,"link":26},"Code","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fsample-dotnet-lambda-cold-start-optimization",{"headline":28,"subheading":29,"text":30,"bullets":31},"Lambda SnapStart for .NET","Snapshots, priming and runtime hooks","Enabling SnapStart moves the JIT cost into the first invocation after a restore rather than removing it. Priming with runtime hooks is what delivers the win, and state captured at init needs care.",[32,35,38,41,44,47],{"text":33,"link":34},"Improving startup performance with Lambda SnapStart","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fsnapstart.html",{"text":36,"link":37},"Under the hood: how AWS Lambda SnapStart optimizes function startup latency","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Funder-the-hood-how-aws-lambda-snapstart-optimizes-function-startup-latency\u002F",{"text":39,"link":40},"Improving SnapStart performance in .NET Lambda functions","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fdotnet\u002Fblog-improving-snapstart-performance-in-net-lambdas\u002F",{"text":42,"link":43},"Maximize Lambda SnapStart performance","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fsnapstart-best-practices.html",{"text":45,"link":46},"Lambda SnapStart runtime hooks for .NET","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fsnapstart-runtime-hooks-dotnet.html",{"text":48,"link":49},"Handling uniqueness with Lambda SnapStart","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fsnapstart-uniqueness.html",{"headline":51,"subheading":22,"text":52,"button":53},"AWS Lambda Power Tuning","Find the memory setting with the best cost or speed for a function. The benchmark harness from the session runs it against each variant.",{"text":25,"link":54},"https:\u002F\u002Fgithub.com\u002Falexcasalboni\u002Faws-lambda-power-tuning",[56,76],{"headline":57,"subheading":58,"text":59,"bullets":60},"Native AOT on .NET 10","Serialization, DI and trimming","Turning on \u003Ccode>PublishAot\u003C\u002Fcode> surfaced three failures: reflection-based serialization, reflection-based DI, and trimming warnings from the AWS SDK. Source-generated \u003Ccode>JsonSerializerContext\u003C\u002Fcode>, explicit DI registration and trim annotations fix them.",[61,64,67,70,73],{"text":62,"link":63},".NET 10 runtime now available in AWS Lambda","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fnet-10-runtime-now-available-in-aws-lambda\u002F",{"text":65,"link":66},"Compile .NET Lambda function code to a native runtime format","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdotnet-native-aot.html",{"text":68,"link":69},"Native AOT deployment overview (Microsoft Learn)","https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fdeploying\u002Fnative-aot\u002F",{"text":71,"link":72},"How to use source generation in System.Text.Json (Microsoft Learn)","https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fstandard\u002Fserialization\u002Fsystem-text-json\u002Fsource-generation",{"text":74,"link":75},"Fixing trim warnings (Microsoft Learn)","https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fdotnet\u002Fcore\u002Fdeploying\u002Ftrimming\u002Ffixing-warnings",{"headline":77,"subheading":78,"text":79,"bullets":80},"Related videos","Earlier sessions and talks","More on SnapStart for .NET, including the re:Invent 2024 session and ASP.NET Core pre-warming.",[81,84],{"text":82,"link":83},"Accelerate Python and .NET Lambda functions with SnapStart (re:Invent 2024, SVS218)","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=D3IOL_mNrFM",{"text":85,"link":86},"The feature you must know about if you're using Lambda SnapStart for .NET (James Eastham)","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=c68hefro7TE","reinvent2026\u002Fsvs344","DS7MQyg4ztAHQjUXSg918IJn4fJsWzgyJAfY-Cgg440",1795189232701]