Amazon Releases .NET Lambda Annotations Framework
Written by Kay Ewbank   
Monday, 14 August 2023

Amazon has announced the general availability of the Lambda Annotations Framework for .NET. The framework provides a natural programming model for .NET developers to create AWS Lambda functions, and Amazon says the model should make the experience of writing Lambda in C# feel more natural for .NET developers by using C# Source Generators.

Lambda is a compute service that runs your code in response to events and automatically manages the computing resources for you. AWS Lambda starts running code within milliseconds of an event such as an image upload, in-app activity, website click, or output from a connected device.

awslogo

The new framework uses C# custom attributes and source generators to translate annotated Lambda functions to the regular Lambda programming model. They create new C# source code and incorporate that code during compilation. Amazon says the framework doesn't have an impact on Lambda startup times because it translates your code at compile time.

awslambda .net framework in Visual Studio

Source generators integrate into the C# compiler to generate the code when the .NET project is compiled. This means no additional tooling is required to use Lambda Annotations other than the Lambda Annotations NuGet package. Any Lambda deployment tooling using CloudFormation can use Lambda Annotations, including the AWS Toolkit for Visual Studio, Lambda .NET CLI or SAM.

Amazon says that the easiest way to start developing with the Lambda Annotations Framework is by downloading Visual studio 2022 and installing the AWS Toolkit for Visual Studio extension. You can then use the AWS Serverless Application project template that ships with the AWS Toolkit for Visual Studio to get started. Alternatively, developers can manually pull down the Amazon.Lambda.Annotations NuGet package into Serverless applications.

awslogo

More Information

AWS Lambda .NET On GitHub

AWS Toolkit for Visual Studio

Related Articles

Amazon Strengthens Lambda Offering

Amazon AWS Lambda

AWS Lambda For The Impatient Part 1

AWS Lambda For The Impatient Part 2

AWS Lambda For The Impatient Part 3

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Huawei Intends To Challenge iOS and Android
24/04/2024

Huawei has just changed its mind and decided to push its HarmonyOS to the rest of the world. A challenger to iOS and Android would be nice, but it is possible?



Important Conference Results
17/04/2024

The SIGBOVIK conference has just finished and its proceedings can be downloaded, but only at your peril. You might never see computer science in the same way ever again.


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info