Search⌘ K
AI Features

Working with Asynchronous Events

Explore how to work with asynchronous AWS Lambda events in serverless applications. Understand the differences between synchronous and asynchronous calls, manage results storage using separate buckets, and configure Lambda functions for background processing and large file handling. This lesson prepares you to handle platform events for robust serverless architectures.

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

...