I have been experimenting with AWS API Gateway and AWS Lambda to try out a serverless architecture. Have been going through blogs and AWS documentation. Have tried out sample GET/POST. But, I have the following requirement w.r.t tracking user events from my custom application
- Events are posted from my application to API end point
- I wanted the API to respond back with a custom response (Say {'fine'}) (acknowledging that the request has been received)
- After the response is sent, hand over the event payload to a AWS Lambda function
As per the documentation, I understand, a) I can post events to API end point b) On GET/POST trigger an AWS Lambda Function - Respond back from AWS Lambda function to API request
I wanted to change the above and modify it to a) Post events to API end point a.0) Respond back acknowledging that request is received [Say {'fine'} ] b) Trigger AWS Lambda function to process the event payload
Please share across suggestions on how to achieve the same.