Dart on AWS Lambda
Dart on AWS Lambda
Article here: https://flatteredwithflutter.com/dart-on-aws-lambda/
We will cover briefly:
- Dart runtime for AWS Lambda
- Write lambda (using Dart)
- Adding a POST endpoint
- Deploy lambda on AWS
Note: This article assumes the reader has an AWS account and knows about the serverless framework
Dart runtime for AWS Lambda
With the introduction of custom AWS Lambda runtimes, it is possible to implement a runtime in any programming language.
AWS Lambda provides an HTTP API for custom runtimes to receive invocation events and send response data back within the Lambda execution environment.
Using the custom AWS Lambda runtime, we can also run Dart on Lambda with the recently published runtime for the Dart programming language.
- AWS released a pub package
aws_lambda_dart_runtime
that packages the dart runtime to build lambda functions with AWS events.