VeryGoodOpenSource / dart_frog

A fast, minimalistic backend framework for Dart 🎯
https://dartfrog.vgv.dev
MIT License
1.84k stars 148 forks source link

feat: Deploy to AWS Lambda #560

Open nosmirck opened 1 year ago

nosmirck commented 1 year ago

Description

I would like the ability to deploy Dart Frog to AWS Lambda. AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. With custom AWS Lambda runtimes, you can implement a runtime in any programming language, including Dart. Here's an article from AWS about it:

https://aws.amazon.com/blogs/opensource/introducing-a-dart-runtime-for-aws-lambda/

Serverless Framework added some unofficial preview support for Dart too:

https://www.serverless.com/plugins/serverless-dart

Maybe support can leverage the serverless framework to publish a dart_frog app or dart_frog has it's own pipeline to publish the app as a lambda function as it already does with App Runner and Containers.

Requirements

Additional Context

We would love to try dart_frog for our backend projects, even migrate most of them from NodeJS to Dart since we have very capable flutter devs that could be contributing with backend changes and even create shared libraries between the backend and frontend projects. The main limitation is that here in Canada App Runner is not available and we would have to pick a US based server. We would like to keep everything in the Canada region and Lambda has been a great way for us to publish endpoints rapidly.

abdallahshaban557 commented 1 year ago

Hello! Abdallah from AWS Amplify here. We are working on enabling the Dart Runtime for Lambda to allow developers to use Dart frog for example. We realize the existing support needs to be improved and modernized. Stay tuned!