Covering the AWS API gateway
We have already discussed AWS Lambda at length throughout the book. AWS Lambda functions can be called in a variety of ways, including the following:
- Directly from the Lambda console in the AWS Console
- Using the Lambda API
- Invoking AWS Lambda functions with the AWS SDK
- Invoking AWS Lambda functions with the AWS CLI
- Using AWS toolkits
- Configuring other AWS services to call AWS Lambda functions
- Configuring AWS Lambda to read data from a stream or items from a queue and invoke an AWS Lambda function depending on the contents.
But another powerful way to invoke AWS Lambda is using the AWS API Gateway. Invoking AWS Lambda in this way is a popular method to create publicly available and private RESTful API services.
The invocation of an AWS Lambda function can be done synchronously or asynchronously. When the function is invoked synchronously, the response from the function can be retrieved in the same code fragment that has the function invocation. Depending...