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


Nano 8 Adds Modern Bindings And Cycle Function
25/07/2024

GNU Nano 8.1 has been released following close on the recent release of version 8.0. GNU Nano is a command line text editor for Unix and Linux that aims to be simple and easy to use.



Fluid Framework 2 Now Production Ready
04/07/2024

Fluid Framework 2, Microsoft's development platform for collaborative ways to work with documents, is now production ready, according to Microsoft.


More News

kotlin book

 

Comments




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