mirror of
https://github.com/nickpoida/og-aws.git
synced 2025-02-15 03:11:57 +00:00
API Gateway 504 Gotcha Nits (#400)
This commit is contained in:
parent
ff04f42beb
commit
87d740b2ad
1 changed files with 1 additions and 1 deletions
|
@ -1292,7 +1292,7 @@ API Gateway
|
|||
- 🔸API Gateway endpoints are always public, i.e. internet facing, and there is no mechanism to build private endpoints, e.g. for internal use on a [VPC](#vpcs-network-security-and-security-groups) but endpoints and their related resources can, optionally, [require authentication](http://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-to-api.html).
|
||||
- 🔸API Gateway doesn’t support multi-region deployments for high availability. It is a service that is deployed in a single region but comes with a global endpoint that is served from AWS edge locations (similar to a CloudFront distribution). You cannot have multiple API Gateways with the same hostname in different AWS regions and use Route 53 to distribute the traffic. More in [this forum post](https://forums.aws.amazon.com/thread.jspa?messageID=735342򳡮).
|
||||
- 🔸Integration timeout: All of the various integration types (eg: Lambda, HTTP) for API Gateway have timeouts, as described [here](http://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#api-gateway-limits). Unlike some limits, these timeouts can't be increased.
|
||||
- 🔸API Gateway returns a 504 status code for any network or low level transport related issue. When this happens, you may see something in the cloudwatch logs for the request that says something like this: `Execution failed due to an internal error`. In reality, this means that even if your backend server is up and running, it may be doing something outside the HTTP specifications (like not sending well-formed chunked messages). Hit your backend directly with the `curl --raw -S -i <backend-endpoint-url>` and see if it complains.
|
||||
- 🔸API Gateway returns a 504 status code for any network or low level transport related issue. When this happens, you may see a message in the CloudWatch logs for the request that includes the message: `Execution failed due to an internal error`. One possible reason for this error is that even though your backend server is up and running, it may be doing something outside of the HTTP specification (like not sending well-formed chunked messages). You can test by hitting your backend directly with the `curl --raw -S -i <backend-endpoint-url>` and seeing if it complains.
|
||||
|
||||
🚧 [*Please help expand this incomplete section.*](CONTRIBUTING.md)
|
||||
|
||||
|
|
Loading…
Reference in a new issue