MartinFowler.com: AWS Expands its Serverless Offerings with a New Python Framework This is no surprise to Amazon Web Services Inc. (AWS), who jumped on the serverless bandwagon early with multiple serverless cloud services. It has now added a preview offering, the Python Serverless Microframework to AWS. Peter Moon, who announced the new service, said that serverless computing was a hot topic among AWS customers. AWS serverless offerings AWS Lambda, Amazon API Gateway and AWS Lambda make it possible to create and manage API applications with virtually unlimited scalability, without having to manage any servers. The AWS Developer Tools team is proud to announce the preview for the Python Serverless Microframework. AWS announced that the new microframework offers:

  • A command-line tool to create, deploy, and manage apps.
  • An easy-to-use and familiar API to declare views in Python code
  • Automatic Identity and Access Management policy generation

ThoughtWorks provides a definition of serverless architecture: It replaces long-running virtual machines by ephemeral compute resources that are created on request and then disappear immediately after being used. Firebase and AWS Lambda are two examples. This architecture can help to mitigate security concerns like SSH access control and security patching. It can also make it easier to use compute resources more efficiently. These systems are very cost-effective and can be equipped with inbuilt scaling capabilities (especially for AWS Lambda). A JavaScript app could have static assets served by a CDN, S3 or S3 and AJAX calls served via the API Gateway or Lambda. Serverless architectures offer significant benefits but also drawbacks. For example, a JavaScript app could have static assets served by a CDN or S3 and AJAX calls served by the API Gateway and Lambda. Moon demonstrated this agility in his post. I created a Hello World project in 45 seconds. I then checked its code file (app.py), deployed it on a public API endpoint and used curl to make a successful HTTP request to that endpoint. We hope you will enjoy the fast and simple microframework experience. Our goal is to reduce the time it takes to get going. Moon demonstrated his coding skills in a three-minute video using the framework’s command line tool, chalice. AWS provided a FAQ that explained the differences between the new framework and other similar ones. The main difference between this framework is that the Python Serverless Microframework is for AWS that uses a familiar decorator-based API to create Python applications that run on Amazon API Gateway or AWS Lambda. It can be compared to Flask/Bottle when it comes to serverless APIs. Its purpose is to make writing and deploying these types applications as easy as possible for Python developers. However, it is not yet ready for prime time. Moon stated that the Python Serverless Microframework is available on PyPI (pip installation chalice), and GitHub. It is currently a preview project, and is not recommended for production APIs.