...

/

Working with Asynchronous Events

Working with Asynchronous Events

Here, you'll learn how to handle asynchronous calls and store output while using AWS Lambda functions.

The Lambda interface is always the same, regardless of the event source or type. The conversion function will expect the same two parameters as all your Lambda functions so far:

  • the event
  • the context object

But unlike everything else we’ve done so far in the course, the Lambda function won’t be able to just return the result back to the client. That’s because S3 invokes the Lambda function in the background, separate from the client request going through API Gateway.

Synchronous and asynchronous calls #

AWS Lambda functions support two types of call, synchronous and asynchronous:

  • Synchronous calls expect the caller to wait until the Lambda function completes. The function ...