Google 云端点的缓存?
Caching of Google Cloud Endpoints?
对 Cloud Endpoints 的请求会被缓存吗?
The official docs对此事略有了解。文档如下:
Cloud Endpoints uses the distributed Extensible Service Proxy to
provide low latency and high performance for serving even the most
demanding APIs. [...] and can be used with Google App Engine, Google
Container Engine, Google Compute Engine or Kubernetes.
A 'distributed extensible service proxy' 让我觉得 Endpoint 被分发到边缘节点以获得更快的响应,但文档没有具体说明这一点。
我们可以使用 Cloud CDN 来缓存来自 GAE、Compute 和 Container Engine 的请求。端点可以与所有这些一起使用。这让我想知道 CDN+compute 在后台是否有一些魔法来缓存 Endpoints 响应。同样,文档对此有一些说明。
有人解决了吗?谢谢!
好问题!可扩展服务代理 (ESP) 不执行请求缓存。它的功能是拦截传入的请求,验证身份验证令牌,然后将请求转发到 Google 服务控制,其中应用了额外的 API 管理规则,如您的 Open API 规范中所定义。 Endpoints 使用分布式代理模型以获得更好的性能,以避免传统多租户 API 代理通常产生的额外网络跃点。这实际上与 Google 内部使用的相同模型为我们自己的 API 提供动力。
如果您还有任何问题,请告诉我们!
对 Cloud Endpoints 的请求会被缓存吗?
The official docs对此事略有了解。文档如下:
Cloud Endpoints uses the distributed Extensible Service Proxy to provide low latency and high performance for serving even the most demanding APIs. [...] and can be used with Google App Engine, Google Container Engine, Google Compute Engine or Kubernetes.
A 'distributed extensible service proxy' 让我觉得 Endpoint 被分发到边缘节点以获得更快的响应,但文档没有具体说明这一点。
我们可以使用 Cloud CDN 来缓存来自 GAE、Compute 和 Container Engine 的请求。端点可以与所有这些一起使用。这让我想知道 CDN+compute 在后台是否有一些魔法来缓存 Endpoints 响应。同样,文档对此有一些说明。
有人解决了吗?谢谢!
好问题!可扩展服务代理 (ESP) 不执行请求缓存。它的功能是拦截传入的请求,验证身份验证令牌,然后将请求转发到 Google 服务控制,其中应用了额外的 API 管理规则,如您的 Open API 规范中所定义。 Endpoints 使用分布式代理模型以获得更好的性能,以避免传统多租户 API 代理通常产生的额外网络跃点。这实际上与 Google 内部使用的相同模型为我们自己的 API 提供动力。
如果您还有任何问题,请告诉我们!