concept Lambda function in category node

appears as: The Lambda function, Lambda functions, Lambda function, Lambda functions
Serverless Applications with Node.js

This is an excerpt from Manning's book Serverless Applications with Node.js.

When a certain event occurs, such as an HTTP request, a Lambda function is triggered, with the data from the event, context, and a way to reply to the event as its arguments. The Lambda function is a simple function handler written in one of the supported languages. At this time of this writing, AWS Lambda support the following languages:

Logging in a serverless application is quite different compared to a traditional one. Although your serverless application consists of completely separated modules—an API Gateway and a Lambda function—you cannot run it locally and properly debug the whole application flow. Additionally, because your application is serverless, there isn’t a server you can log into to tail its logs. Yes, this probably does sound weird and frustrating, but don’t worry.

Listing 7.7 Adding the S3 trigger to the Lambda function
claudia add-s3-event-source \    #1  
  --bucket aunt-marias-pizzeria \    #2  
  --prefix images/    #3  

  #1   Add an S3 event source to the function.
  #2   Specify the bucket.
  #3   Specify a prefix—the S3 folder that will trigger the events.