1 回答
- 最新
- 投票最多
- 评论最多
0
Hi,
First, you should consider simply using what Route53 provides out of the box: Amazon Route 53 health checks. See https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html
If you find it insufficient for your use case, your lambdas at edge can check the CloudWatch metrics published by API gateway to check the overall health in your various regions. They can then decide which region to call depending on your choice algorithm based on those metrics.
For example:
4XXError The number of client-side errors captured in a given period.
The Sum statistic represents this metric, namely, the total count of the 4XXError
errors in the given period. The Average statistic represents the 4XXError error rate,
namely, the total count of the 4XXError errors divided by the total number of requests
during the period. The denominator corresponds to the Count metric (below).
Unit: Count
5XXError
The number of server-side errors captured in a given period.
The Sum statistic represents this metric, namely, the total count of the 5XXError errors
in the given period. The Average statistic represents the 5XXError error rate, namely,
the total count of the 5XXError errors divided by the total number of requests during the period.
The denominator corresponds to the Count metric (below).
Unit: Count
Latency
The time between when API Gateway receives a request from a client and when
it returns a response to the client. The latency includes the integration latency and
other API Gateway overhead.
Unit: Millisecond
See https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-metrics-and-dimensions.html for all possible such metrics.
Best,
Didier
相关内容
- AWS 官方已更新 9 个月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
Hi Didier ,
But how would i measure cognito errors , AWS does not publish these errors , how can i know when to update my cloudfront and switch over to secondary Cognito on DR region.
Found a proxy solution using API gateway to proxy requests to cognito . https://aws.amazon.com/blogs/architecture/enriching-amazon-cognito-features-with-an-amazon-api-gateway-proxy/
Anything else that can be done ?