1
votes

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?

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.

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.

1
Could elaborate a bit more on what you mean? How are the "high traffic endpoints" avoiding traffic/cost? What do you mean by "enable Cloud Endpoints on the low traffic endpoints for authentication but not on those high traffic endpoints"? Do you expect some interaction between the authenticated Endpoints and the "non-authenticated" high traffic URLs (I am not calling them Endpoints to avoid confusion)?Ying Li
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.xiu shi
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. Hope that would clarify my intention.xiu shi
There is no proxy server in the App Engine standard environment, only the flex environment. If you are using the standard environment, the "management framework" provides the proxy server features. Ultimately an Endpoints Framework app is a WSGI app, so it can be just part of your app if need be. If you are using the flexible environment, things are normally set up so you can only access the app through the proxy server; this is for security reasons. Please clarify which environment you're using.Rose Davidson
I'm using flexible environment.xiu shi

1 Answers

0
votes

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