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 plays with Fire TV Cube, turns it into a thin client for cloudy desktops

$195 a pop, delivered, pre-provisioned ready to stream desktops or apps

Sumo Logic wrestles with security breach, pins down customer data

Compromised AWS account led to fears that user info could have been exposed to cybercriminals

Amazon's Project Kuiper satellites nail online orders from orbit

Late-stage capitalism ... in spaaace

AWS staffer shows off the workplace that used to be a prison

Panopticon design gains new meaning for the all powerful cloud platform

Desperately seeking GPUs? AWS will let you reserve instances in advance – no refunds

Better make sure you really need it on the day. Paid upfront and no modifications to orders allowed

Cryptojackers steal AWS credentials from GitHub in 5 minutes

Researchers just scratching surface of their understanding of campaign dating back to 2020

AWS CEO talks up AI to focus minds of Wall Street types

Q3 sales below forecasts, profits up, and conversation centers on LLMs and GenAI

AWS says it wants in on the European sovereign cloud game

Appealing to growing crowd that wants data outside US jurisdiction

Imagine a world without egress fees or cloud software license disparities

UK regulator lists series of potential remedies for anti-competitive practices early on in probe

HTTP/2 'Rapid Reset' zero-day exploited in biggest DDoS deluge seen yet

Botnet storm drowned last record with 398 million requests per second

UK IaaS market: Deeper probe by competition regulator lands soon

Ofcom to refer findings to CMA – which insiders say will home in on egress fees, interoperability and licensing

Obscured by clouds: Time for IaaS vendors to come clean and play fair

All that stuff about resilience, choice, and control? Yeah, we'll take them now please