When you invoke a function synchronously, Lambda runs the function and waits for a response. When the function completes, Lambda returns the response from the function's code.
Lambda - Synchronous Invocations - Services
- User Invoked:
Elastic Load Balancing (Application Load Balancer)
Amazon API Gateway
Amazon CloudFront (Lambda@Edge)
Amazon S3 Batch
- Service Invoked:
Amazon Cognito
AWS Step Functions
- Other Services:
Amazon Lex
Amazon Alexa
Amazon Kinesis Data Firehos
Demo:
Step-1:
Go to the lambda function and go to the create function.
Step-2:
Use blue-print and search for hello-world nodejs.
Step-3:
Configure the function as follow and create function.
Step-4:
Go to the cloud shell service and check aws cli version as follow.
Step-5:
Following command list all the function.
Step-6:
Invoke the function from cli or cloud shell
Step-7:
Cat the response file to view the response from lambda function
Top comments (0)