缓存Google Cloud端点? [英] Caching of Google Cloud Endpoints?

查看:84
本文介绍了缓存Google Cloud端点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否会缓存对Cloud Endpoint的请求?

Will requests to Cloud Endpoints get cached?

官方文档在此问题上略有不同。文档显示为:

The official docs are a little light on this matter. The docs read:


Cloud Endpoints使用分布式可扩展服务代理为
提供低延迟和高性能,即使是最大的服务
要求苛刻的API。 [...]并可以与Google App Engine,Google
容器引擎,Google Compute Engine或Kubernetes一起使用。

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' makes me think the Endpoint is distributed to the edge nodes for faster responses, but the docs don't specifically state this.

我们可以使用Cloud CDN缓存来自GAE,Compute和Container Engine的请求。端点可以与所有这些一起使用。这让我想知道CDN + compute在后台是否存在某种魔术来缓存端点响应。再次,文档对此有所了解。

We can use Cloud CDN to cache requests from GAE, Compute and Container Engine. Endpoints can be used with all those. This makes me wonder if there's some magic in the background with CDN+compute to cache the Endpoints responses. Again, the docs are a little light on this.

有人知道吗?谢谢!

推荐答案

好问题!可扩展服务代理(ESP)不执行请求缓存。它的功能是拦截传入的请求,验证身份令牌,然后将请求转发到Google Service Control,在该服务中按照Open API规范中的定义应用其他API管理规则。端点使用分布式代理模型来获得更好的性能,从而避免了传统的多租户API代理通常会产生的额外网络跳。实际上,这是Google内部用于为自己的API供电的模型。

Great question! The Extensible Service Proxy (ESP) does not perform request caching. Its function is to intercept incoming requests, validate auth tokens, and then forward the request to Google Service Control where additional API Management rules are applied as defined in your Open API spec. Endpoints uses a distributed proxy model for better performance, to avoid the extra network hop that's typically incurred with a traditional multi-tenant API proxy. This is in fact the same model used internally within Google to power our own APIs.

如果您还有其他疑问,请告诉我们!

Please let us know if you have anymore questions!

这篇关于缓存Google Cloud端点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆