O'Reilly logo

Serverless Single Page Apps by Ben Rady

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding Amazon Lambda

Amazon Lambda is a service that lets you run code in the cloud without provisioning or managing servers. With Lambda, Amazon has jumped firmly onto the microservices bandwagon. They might even be pulling the wagon. Lambda lets you write stand-alone functions in JavaScript—and, increasingly, in other languages—that run in a specialized container. You can access these functions in many ways, including over the web via the Amazon API Gateway.

To use Lambda with JavaScript, we need to create a JavaScript function that takes two arguments and put it in a .js file. This function can use anything in the Node.js standard library, or any other Node.js libraries we wish to include. We then need to package this function, and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required