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


Android Apps Can Block Being Sideloaded
17/09/2024

Android developers now have a way to prevent users sideloading their apps, and users are seeing the effects. Google Play Integrity API, which was released in June, blocks sideloading.



Lakera Finds Lack Of Confidence In AI Security
22/08/2024

A survey from Lakera reveals that only 5% of cybersecurity experts have confidence in the security measures protecting their GenAI applications, despite the fact that 90% are actively using or ex [ ... ]


More News

kotlin book

 

Comments




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