Large scale API usage issues
Hello,
we are developing a java application for a box enterprise client. The application scans all client`s files/folders, always retrieving the BoxItem.Info and sometimes downloading the files themselves. We are speaking about possible millions of items over gigabytes of data.
As I was able to find in the forum, the API calls limit is up to 10 calls per sec, and overall enterprise account monthly calls limit is 100,000.
1. Is it possible to increase the calls per second rate to a much higher rate?
2. Is it possible to increase the calls per month rate to a much higher rate?
Thanks.
-
Hello,
Thanks so much for using our platform and developer forum!
1. Is it possible to increase the calls per second rate to a much higher rate?
We do not make exceptions to these limits and they cannot be increased. One distinction I'd like to make though is that it is 10 calls per second per user and 4 uploads per second per user. Therefore, if you're worried about hitting rate limits we recommend spreading out the calls over multiple users.
2. Is it possible to increase the calls per month rate to a much higher rate?
It would be best to have a conversation about this with your account executive or our sales team!
Best,
Kourtney
-
regarding the "per user limit" : we are using a JWT authentication method. Does this mean that generating multiple JWTs for the application, will allow theoretically higher access rate if each box connection will be done with another token?
Moreover, does the overall monthly limit of 100k calls is per ''user/JWT/app'' or per account ?
Thanks
-
you can add a request interceptor.
It executes before API call is sent. There you can implement the logic.
Here is a very basic example:
api.setRequestInterceptor(new RequestInterceptor {
private static AtomicInteger requestsCounter = new AtomicInteger(0);
@Override
public BoxAPIResponse onRequest(BoxAPIRequest request) {
System.out.println("Box api ["+request.getUrl()+"] calls count=" + requestsCounter.incrementAndGet());
return null;
}
}
);
サインインしてコメントを残してください。
コメント
6件のコメント