Amazon Web Services

New Lambda features show Amazon is serious about serverless computing

(Source: Amazon)

22 November 2016

Some call it “lambda architecture,” others call it “serverless computing.” Whatever the name, the idea is the same — break applications into clusters of single functions that run on-demand and on automatically managed resources.

At Amazon, it is called AWS Lambda, and the latest Lambda-related features indicate serverless computing is becoming a more important part of Amazon’s portfolio.

Recently, Amazon unveiled two new features for AWS Lambda designed to broaden its appeal as a development platform.

Making it portable
First up is the ability to associate environment variables with specific Lambda functions, which allows API keys or other secrets to be used without having to hard-code them into a function. The variables can be stored as encrypted key/value pairs in AWS Key Management Service and are decrypted on-demand — Amazon is not reinventing the wheel. There is a hard per-function limit of 4KB of storage for variables, but that should cover the vast majority of use cases.

The other new feature, the AWS Serverless Application Model (SAM), speaks directly to how AWS Lambda-created apps can be made easier to create, manage, and even port between infrastructures.

AWS SAM is essentially a manifest file for an AWS Lambda application that describes all the different pieces it speaks to in AWS’s architecture, such as Amazon API Gateway resources (for creating API endpoints) and Amazon DynamoDB tables. SAM files can be used by AWS CloudFormation and can be automatically generated from an existing Lambda function to be used as a model for other Lambda functions.

Going mobile
Another set of improvements, announced earlier this month, allows Lambda features to be used with Amazon’s mobile application development system, AWS Mobile Hub. In this scenario, Mobile Hub is not being used to connect to existing Lambda functions, but can help create functions and equip them with API Gateway endpoints that are used in mobile apps.

Amazon’s rationale for doing this is that it allows front-end developers to build back ends as they need them, starting from the app side rather than from the server side. It’s meant to improve workflow for developing mobile apps as much as it’s meant to improve their infrastructure — and it gives more devs a reason to build something in a “Lambda-first” fashion.

Don’t fence (or lock) me in
One ongoing concern about serverless architectures is lock-in, which users of almost any cloud service must consider. In AWS Lambda’s case, the lock-in is not because of the construction of the functions themselves, but rather that Amazon makes it easy to become highly dependent on the web of Amazon-only services surrounding them.

The problem is not insurmountable. Third parties have already stepped up to offer ways to liberate AWS Lambda workloads from those constraints (such as’s Project Kratos or the Serverless Framework). SAM itself appears to be part of Amazon’s effort to make Lambda less closed-ended. In theory, the SAM file for a Lambda function can be used to replicate it in an entirely different environment that matches Amazon, feature for feature. That’s not too far-fetched, given how Amazon’s APIs and feature sets have become de facto standards.



IDG News Service

Read More:

Comments are closed.

Back to Top ↑