I am working on a gae application using python. The application includes a data collection system collected by the crowd, and the data used in the application is submitted by users across the country. Now I use the default quotas (free), but I ran into the problem of providing at least 99% of the time for my application.
The problem is that Google blocks further requests sent to your application when you run out of allocated quotas, and during a recent test take-off, one person was able to create an automatic posting script that quickly exhausted the CPU quota - after that the application will only serve HTTP 403 Forbidden status code for the request instead of calling a request handler . Now I have secured the system so as not to allow automatic postings, but how can I guarantee that user users will not cause such βdimmingβ during production?
I know the quota API, but I think that it can only give me profiling information for my application, I want to slow down the speed of requests (for example, per minute for quotas per minute) without serving error pages or power outages.
Any suggestions?
source share