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 ...
Get Serverless Single Page Apps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.