- 最新
- 最多得票
- 最多評論
Hi,
I think starting with aws-serverless-express is a good place to start if you're looking to quickly migrate an existing ExpressJS application. This will make it much easier to get up and running and debugging locally if you are already familiar with ExpressJS.
As your application grows you may want to start looking towards using something a bit more lightweight like middy and breaking up your functions. The idea here is by moving to a more modular approach you'll be able to take advantage of additional API Gateway functionality, follow the principle of least privilege with your policies, and right sizing your lambda functions (ie: lambda-power-tuning).
A good way to get started would be to pick a serverless framework/toolchain. A few worth exploring are:
if it's something small you can start simple and then ramp up as needed.
Edit: I failed to mention; if you are beginning a new project it may be better to look into designing your architecture with serverless in mind, which would be more towards focusing on creating individual lambdas, rather than a single lambda handling multiple routes
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前