4 ms·
If using NodeJS there is a very similar package to zappa called Serverless https://serverless.com/ https://serverless.com/ One thing I would improve with the a
by Lord_Zero 8y ago
If using NodeJS there is a very similar package to zappa called Serverless https://serverless.com/ https://serverless.com/
One thing I would improve with the authors article is he crammed a giant conditional statement on the http-method inside his one function. Serverless makes it easy to bundle a single function per HTTP method and even share common code between them. You can build out a whole application as a single npm package.
Bonuses include plugins for serverless that let you unit test your handlers, run a simulated APIG/Lambda/Dynamo environment locally for development, plugins that let you interact more deeply with AWS like assigning a custom domain to your APIG.
Example apps: https://github.com/serverless/examples https://github.com/serverless/examples
- bbrock25 8y ago+1 for serverless. Have also used it extensively for building python applications on AWS lambda.
- k__ 8y agoI went for AWS SAM, but it's still lacking behind Serverless.
- Terr_ 8y agoI'm currently working on a project where -- in serverless.yml -- a single API gateway path for all HTTP methods leads to a Flask app... largely because this scheme seems much much easier and faster to test and develop locally. Are there any particular benefits to exporting and reimplementing all of that routing and organizational logic into instructions that "program" the API Gateway instead? In this particular case, the API is solely for external consumption by a third party
- dschep 8y agoServerless Framework is also great for Python if you're not porting a WSGI application. Plug/Disclaimer: I'm the creator/maintainer of the defacto python dependency packaging plugin for serverless[0] [0] https://github.com/UnitedIncome/serverless-python-requirements https://github.com/UnitedIncome/serverless-python-requiremen...