Off-Prem

SaaS

AWS cooks up Extensions API for Lambda serverless platform: Useful for monitoring, alerting

Cloud Functions rival flings out preview that enables custom code to handle lifecycle events


Cloud computing behemoth Amazon Web Services, has pushed out an Extensions API for its Lambda serverless platform that lets developers write custom code to handle lifecycle events – such as when the environment starts, invokes functions, and shuts down.

AWS Lambda runs functions on demand. It works by firing up an execution environment when a function is called, with a choice of runtimes including various versions of Java, Node.js, Python, .NET and Ruby, or a custom runtime. The environment stays running while there are frequent function invocations, and shuts itself down if not required for a period.

The Extensions API allows developers to write code for the three phases of the Lambda lifecycle: the init phase, when the environment starts up; the invoke phase, when functions run; and the shutdown phase, when the environment closes down.

Extensions can run either internally on the execution runtime, for purposes such as instrumenting code, or externally as companion processes, for purposes such as fetching secrets and caching them in the execution environment.

Lambda customer Square, a provider of eCommerce tools, has described how it used the new API to write an extension in Go that improves function startup time by fetching secrets before the runtime starts, and reported around 30-40 per cent reduction in cold start time.

Lambda extensions can run as parallel processes to the code on the runtime itself

Extensions are ideal for monitoring function execution on Lambda, and the usual suspects – companies like AppDynamics, DataDog, New Relic and Splunk, which provide monitoring and alerting services – have been quick to use them to integrate with their tools. The newly published API opens up ways for developers to optimise and monitor Lambda deployments using custom code. Extensions are deployed using Lambda layers, a way of packaging function dependencies. The pricing model is the same as for Lambda itself, based on a combination of the number of requests served and the compute time consumed.

Separately, AWS has also previewed CloudWatch Lambda Insights, CloudWatch being its own monitoring service. A multi-function view "provides visibility into issues such as memory leaks or performance changes caused by new function versions". CloudWatch users can enable Lambda Insights with a single click in the AWS console, where it is called Enhanced Monitoring, or via other tools such as the command-line interface (CLI).

The Extensions API is another piece in making Lambda more manageable and complete. Monitoring provider Thundra, another company taking advantage of the new feature, remarked that the "Extensions API will help companies that complain about the limitations of serverless overcome those challenges."

Serverless is the "best abstraction for deploying software", according to some experts, with Lambda the most popular option, though Microsoft has its equivalent in Azure Functions and Google has Cloud Functions. ®

Send us news
6 Comments

AWS is pushing ahead with MFA for privileged accounts. What that means for you ...

The clock is ticking – why not try a passkey?

Broadcom ends easy elasticity for VMware Cloud on AWS

Amazon is not taking this lying down, as shown by aggressive migration promotions

Amazon to add 15 datacenters to atomic-powered campus

And with up to 960MW of capacity on the table, that may only be the beginning

AWS pledges to spend €15.7B expanding Spanish operations

Much of the money will go to mountainous Aragón – not mainly in the plain

AWS to pump billions into sovereign cloud for Germany

It'll own the datacenters, but keep data and employees local

AWS CEO logs off after three years at the helm

Adam Selipsky off on new adventures. What those are, we'll have to wait and see

VMware waves goodbye to AWS middleman as Broadcom takes the reins

Customers brace for bumpy ride

Amazon's latest 'flex' VMs promise savings for your burstiest apps

Sustained workloads need not apply

UK competition cops say Microsoft's stake in Mistral is not a merger

Watchdog drops official probe but IT giant's deal with Inflection AI and Amazon's with Anthropic still in play

Global EV sales continue to increase, but Plug-in Hybrid momentum is growing

PHEVs make a lot of sense for traditional automakers faced with battery-powered losses

From chips to cloud, tech titans continue to splash cash across APAC

Intel and pals automate manufacturing in Japan while AWS pledges billions to Singapore

AWS CISO tells The Reg: In the AI gold rush, folks are forgetting application security

'Everybody's learning as they go. But there's a rush to get these apps out'