google-app-engine - 缓存谷歌云端点?

标签 google-app-engine caching google-cloud-platform 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.

“分布式可扩展服务代理”让我觉得 Endpoint 被分发到边缘节点以获得更快的响应,但文档没有具体说明这一点。

我们可以使用 Cloud CDN 来缓存来自 GAE、Compute 和 Container Engine 的请求。端点可以与所有这些一起使用。这让我想知道 CDN+compute 在后台是否有一些魔法来缓存 Endpoints 响应。同样,文档对此有一些说明。

有没有人想过这个?谢谢!

最佳答案

好问题!可扩展服务代理 (ESP) 不执行请求缓存。它的功能是拦截传入的请求、验证身份验证 token ,然后将请求转发到 Google Service Control,在 Google Service Control 中应用额外的 API 管理规则,如您的 Open API 规范中所定义。 Endpoints 使用分布式代理模型以获得更好的性能,以避免传统 Multi-Tenancy API 代理通常会产生的额外网络跃点。这实际上与 Google 内部使用的相同模型来支持我们自己的 API。

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

关于google-app-engine - 缓存谷歌云端点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40579015/

相关文章:

java - AppEngine Memcache 原子获取和删除

google-app-engine - 使用 GAE 进行开发 - 我对 Google 的依赖程度如何?

amazon-web-services - AWS Elasticache 与 API 网关缓存

java - 如果我们在 Google Cloud Platform 中部署了 Spring Boot 应用程序,如何查看日志?

networking - 无法从 Compute Engine 虚拟机实例 (GCP) 连接到 Memorystore

laravel - 如何在fluentd中解析laravel日志

python - 示例 google app engine (python, Django) 开源网站

java - Vertx 中的定时缓存

java - 如何在 Redis 中对复杂对象进行建模

google-app-engine - Google App Engine 上的亚马逊产品广告 API