-
-
Save dasgoll/97ff786f3b13b3afeb2fde74e6a63ca2 to your computer and use it in GitHub Desktop.
Lambda-Proxy vs Lambda Integration in AWS API Gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╔═════════════════════════════════════════════════════╦════════════════════════════════════════════════════════════╗ | |
║ Lambda-Proxy ║ Lambda ║ | |
╠═════════════════════════════════════════════════════╬════════════════════════════════════════════════════════════╣ | |
║ This is a simple, but powerful integration. All the ║ This is complex, but offers more control over transmission ║ | |
║ request to the APIGateway URL is forwarded ║ data. The request can be modified before it is ║ | |
║ straight to the Lambda and the response is sent ║ sent to lambda and the response can be modified ║ | |
║ from Lambda. i.e No modifications to the ║ after it is sent from lambda. This can be done by ║ | |
║ request(query params, body, variables) and ║ mapping templates which transforms the payload, as per ║ | |
║ response(status code, message) are done ║ the user customisations. API Gateway uses Velocity ║ | |
║ by the APIGateway. ║ Template Language (VTL) engine to process body ║ | |
║ ║ mapping templates for the integration request ║ | |
║ ║ and integration response. ║ | |
╚═════════════════════════════════════════════════════╩════════════════════════════════════════════════════════════╝ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment