Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Google Closure Compiler REST API request limit?

Performing too many requests from the Closure Compiler API you get this error:

Error(22): Too many compiles performed recently.  Try again later.

What is the actual/current limit? Is it an hourly limit? A rolling window?

Any documentation on how this is calculated? The only information about this I could find is on this page (search for "abuse"): https://developers.google.com/closure/compiler/docs/gettingstarted_ui?hl=en

like image 412
4 revs, 2 users 76% Avatar asked Jan 13 '13 03:01

4 revs, 2 users 76%


People also ask

What does Closure compiler do?

The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left.

What is the purpose of the Advanced mode in the Closure Compiler?

Explanation: In Advanced mode it rewrites the JavaScript by renaming variables and functions from longer descriptive names to single letters to save file size, and it inlines functions, coalescing them into single functions wherever it determines that it can.

Which of the following are the three compilation levels that can be applied to the JavaScript code to define the degree of compression and optimization required?

The value of this parameter indicates the degree of compression and optimization to apply to your JavaScript. There are three possible compilation levels: WHITESPACE_ONLY , SIMPLE_OPTIMIZATIONS , and ADVANCED_OPTIMIZATIONS .


1 Answers

There are per minute/per hour/per day caps. This is not currently documented, but I believe it the caps allow a sustained rate of ~1 per minute. In my experience when people run into this problem, they would would be either happier with the command-line tool, or a local compilation server like Plovr or are hitting it by accident (i.e. they don't realize that they are continuously hitting the web service).

like image 178
John Avatar answered Oct 05 '22 21:10

John