Рет қаралды 3,067
ASP.NET is a powerful technology for building web applications in .NET. .NET 6 introduce a new way of defining your API's, using the minimal API syntax. Minimal API's simplify the definition of your API endpoints and handlers.
AWS provides tooling to run your ASP.NET minimal API on AWS Lambda by adding a single line of code to your existing application. The additional code allows the same code to run on both using the Kestrel web server and with AWS Lambda when deployed into the Lambda environment.
In this video we walk through how to take an out of the box ASP.NET minimal API and deploy that on to AWS Lambda.
00:00 - Introduction
00:30 - Create a new minimal API
01:40 - Install Nuget package
02:10 - Add additional startup code
04:00 - AWS Lambda .NET Global CLI
05:10 - Deploy Function wizard
07:40 - API Gateway Configuration
09:40 - Performance
Links
Install SAM CLI - docs.aws.amazon.com/serverles...
Install .NET 6 - dotnet.microsoft.com/en-us/do...
Amazon.Lambda.AspNetCoreServer - github.com/aws/aws-lambda-dot...
Minimal API's - learn.microsoft.com/en-us/asp...
Benchmarks - github.com/aws-samples/server...
Twitter - / plantpowerjames
LinkedIn - / james-eastham
Website - serverlessdotnet.dev