我是否可以仅在GAE中的特定端点上使用Google Cloud Endpoints

时间:2021-01-04 20:21:39

I'm working on an project on GAE which contains several high traffic endpoints and one endpoint that has low traffic but need authentication. My question is, can I enable Cloud Endpoints on the low traffic endpoint for authentication, but not on those high traffic endpoints, because Endpoints is expensive?

我正在开发一个GAE项目,它包含几个高流量端点和一个流量低但需要身份验证的端点。我的问题是,我是否可以在低流量端点上启用云端点进行身份验证,但不能在那些高流量端点上启用,因为端点价格昂贵?

My understanding of how Cloud Endpoints work with GAE is that once the swagger file is deployed, and you specify a Endpoints version in app.yaml file, all traffic that goes through the Endpoints proxy server before reaching the application server. Also because Endpoints is charged based on # of requests, so in my case the entire application will take tens of millions request per day, but only a tiny fraction of that request will goes to a specific endpoint in the application that requires authentication.

我对云端点如何与GAE协同工作的理解是,一旦部署了swagger文件,并在app.yaml文件中指定了端点版本,所有流量在到达应用服务器之前都会通过端点代理服务器。此外,因为端点是根据请求数收取的,所以在我的情况下,整个应用程序每天将需要数千万个请求,但只有一小部分请求将转到需要身份验证的应用程序中的特定端点。

In order to avoid spending thousands of dollars per month on Endpoint, It would be way cheaper if I can only let those privileged request go through Cloud Endpoints, and be charged only on those request.

为了避免每月在Endpoint上花费数千美元,如果我只能让这些特权请求通过Cloud Endpoints,并且仅根据这些请求收费,那将会更便宜。

1 个解决方案

#1


0  

You can have only one Endpoint (thus only one charged Endpoint pricing), if you separate it from the other URLs. You can do that by separating the Services or Projects

如果将其与其他URL分开,则只能有一个端点(因此只有一个收费的端点定价)。您可以通过分离服务或项目来实现

#1


0  

You can have only one Endpoint (thus only one charged Endpoint pricing), if you separate it from the other URLs. You can do that by separating the Services or Projects

如果将其与其他URL分开,则只能有一个端点(因此只有一个收费的端点定价)。您可以通过分离服务或项目来实现