通过 AWS 最大限度地减少用户延迟

Minimising latency for users via AWS

我是 AWS 新手。我正在为我的项目使用 AWS Lambda。如何最大限度地减少网站用户的延迟率。我想从最近的 instance/server 到用户执行我的后端逻辑。我听说 Route 53 可以做到这一点。我该如何配置。

由于您担心地理位置驱动的延迟,我假设您希望从多个不同区域调用这些 lambda 函数。如果是这样,您可以结合使用 Route 53 和 API 网关来实现您的目标。

Many customers are looking to run their services at global scale, deploying their backend to multiple regions. In this post, we describe how to deploy a Serverless API into multiple regions and how to leverage Amazon Route 53 to route the traffic between regions. We use latency-based routing and health checks to achieve an active-active setup that can fail over between regions in case of an issue. We leverage the new regional API endpoint feature in Amazon API Gateway to make this a seamless process for the API client making the requests. This post does not cover the replication of your data, which is another aspect to consider when deploying applications across regions.

详细演练:https://aws.amazon.com/blogs/compute/building-a-multi-region-serverless-application-with-amazon-api-gateway-and-aws-lambda/