Subscribe / Unsubscribe Enewsletters | Login | Register

Pencil Banner

Amazon launches Lambda, an event-driven compute service

Joab Jackson | Nov. 14, 2014
Continuing to roll out new compute services at an impressive clip, Amazon Web Services has introduced a way for programmers to trigger operations in their AWS deployments without running a full virtual machine, potentially reducing maintenance work and cost.

Continuing to roll out new compute services at an impressive clip, Amazon Web Services has introduced a way for programmers to trigger operations in their AWS deployments without running a full virtual machine, potentially reducing maintenance work and cost.

The service, called AWS Lambda, will provide a virtual space for programmers to run scripts or business logic programs that can be activated when some event occurs, such as a user uploading a photo. The script can then trigger other services in the AWS arsenal, such as storing the photo on Amazon S3 (Simple Storage Service), or execute other operations, such as generating a series of thumbnails based on the photo. Lambda could be used to coordinate operations of complex event-driven back-end services, according to the company.

"You can write code without having to manage any infrastructure," said AWS chief technology officer Werner Vogels, who introduced the technology during his keynote Thursday at the company's Re:Invent user conference in Las Vegas. "Your code will only run when needed. You can run it once a month, or run thousands of these functions a second."

Al Hilwa, a software development analyst for IDC, said the Lambda service was born of the need to do small amounts of processing based on event triggers. "But the availability of such a simple service at an attractive price and pricing model is far reaching in its implications," he wrote in an e-mail. "I predict there will be significant applications that will be built incrementally using this functional programming approach."

For those running multiple AWS services as a single operation, coordinating these services usually involves running a program on a full Amazon virtual machine (VM). Lambda does away with the need to run a separate VM, as well as the chore of installing and maintaining the software needed to run the program. Instead, Lambda provides just a language runtime environment for running just the program itself.

"You are essentially just thinking about your code and what will trigger your code. We deal with all the rest," said Ariel Kelman, AWS head of worldwide marketing, in a follow-up interview.

Lambda initially will run code written in JavaScript. To power Lambda, Amazon is running a version of the Node.js, a server-side JavaScript runtime environment. Any external JavaScript library can be used with Lambda, allowing developers to import their own sets of functionality or use third-party sources. Additional languages will be supported in the future.

A Lambda service can be triggered by an event that occurs in another AWS service. Initially, the service can recognize only events that occur in S3, the DynamoDB database service, or in the Amazon Kinesis real-time streaming service. Most all AWS services will eventually be supported, Kelman said.

 

1  2  Next Page 

Sign up for Computerworld eNewsletters.