Choose where adaptation happens
How proxy and custom integrations control request and response adaptation between REST APIs and legacy backends. · advanced
A REST API can expose a client-facing contract that differs from a legacy backend's interface. The integration choice determines where that difference is handled. With HTTP proxy integration, API Gateway passes the request to the HTTP endpoint and its response back to the client, without requiring you to configure integration requests and responses. With HTTP custom integration, you configure both sides: method request to integration request, then integration response to method response.
Lambda proxy integration also avoids that custom mapping configuration. API Gateway supplies the incoming request as function input; function code parses headers, path variables, query strings, and the body. This places request interpretation in code rather than configured integration mappings.
Custom integrations make configured adaptation reusable. HTTP custom integration supports reuse of mapping templates across endpoints; Lambda custom integration supports reuse where endpoints have similar input and output format requirements. The trade-off is more integration configuration rather than simply forwarding the interface or interpreting the proxy input in function code.
| Integration | Request handling | Configured adaptation |
|---|---|---|
| HTTP proxy | Forward to HTTP backend | No custom mapping pipeline |
| HTTP custom | Map method to backend | Request and response mappings |
| Lambda proxy | Function parses supplied input | Adaptation in function code |
| Lambda custom | Configured input/output formats | Reusable mapping templates |