Design Doc: Lambda Annotation #961
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is for comments on a new .NET Lambda high level library to simplify writing .NET Lambda functions and make the experience more idiomatic.
The high level overview of this library is to use .NET source generator support to translating from the low level single event object programming model of Lambda to an experience similar to ASP.NET Core but with minimal overhead. The initial work is focused on REST API Lambda functions but the technology is applicable for other Lambda event types.
For example users will be able to write a Lambda function like the following with the
ICalculator
service being injected by dependency injection and and theLambdaFunction
andHttpApi
attributes directing the source generator to generator the compatible Lambda boiler plate code and sync with the CloudFormation template.Link to rendered version of the design is here
Development is happening on the feature/annotations branch. Dev builds can be found in the repo's configured Source Generator CI action. Development is very active and breaking changes are to be expected at this stage.
Here is a list of tasks for implementation in no particular priority order. The list will grow as we get deeper into implementation.
Convert.ChangeType
failuresTargetFramework
of the projectPlease feel free to comment on the design doc in this PR. That includes direct comments on the design or additional feature requests.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.