.NET 7 on AWS Lambda with NativeAOT

Опубликовано: 12 Июнь 2026
на канале: James Eastham
3,329
54

In this video you will learn how you can use .NET on AWS Lambda using Native Ahead of Time Compilation.

AWS Lambda will not support .NET 7 as a managed runtime as it is not an long term support release. However, with NativeAOT compilation going GA this opens up the possibility of running .NET applications on Lambda using a custom runtime.

There are some gotchas to doing this, and in this video we will talk through exactly what you need to consider when using .NET 7 on Lambda.

00:00 - Introduction
01:10 - Function Handlers
01:50 - Lambda Entry Point
03:30 - Changes to csproj file
04:50 - Runtime Directives
05:50 - IMPORTANT Assembly Name
06:20 - Source Generated Serialization
11:20 - Deploying .NET 7 NativeAOT to Lambda
14:30 - SAM Template Changes
15:45 - Performance Benchmarks

NativeAOT - https://learn.microsoft.com/en-us/dot...
Benchmarks - https://github.com/aws-samples/server...
Code Sample - https://github.com/aws-samples/server...
Runtime Directives (rd.xml) - https://docs.microsoft.com/en-us/wind...
What's new in .NET 7 RC1 - https://github.com/dotnet/core/issues...
.NET 7 Performance - https://devblogs.microsoft.com/dotnet...
Source Generated Serializers - https://devblogs.microsoft.com/dotnet...

Web - https://jameseastham.co.uk
Twitter -   / plantpowerjames  
LinkedIn -   / james-eastham