onebusaway-application-modules icon indicating copy to clipboard operation
onebusaway-application-modules copied to clipboard

Add documentation for API Throttling

Open colinmcglynn opened this issue 9 years ago • 3 comments

In a Google Group discussion we realized that both API users and Server Admins could use some more documentation about how API Throttling works in OBA.

The API Keys Section on http://developer.onebusaway.org/modules/onebusaway-application-modules/current/api/where/index.html should include a warning that API keys are rate limited by default to one request per 100ms, but that API users may request changes to their limit from the OBA server administrator.

http://developer.onebusaway.org/modules/onebusaway-application-modules/current/guides/api-webapp-configuration-guide.html The Managing API Keys using the Admin Interface section should mention that the rate limit is configured based on time between calls not calls per time period. (since that has been a point of confusion)
The Creating an API Key in data-sources.xml section should describe how the API limit can be configured here and what the default is if it is left blank.

colinmcglynn avatar Nov 01 '16 18:11 colinmcglynn

This is a larger issue than just documentation for API rate limits, but I thought I'd raise it here too - we have updated documentation on the wikis as well: https://github.com/OneBusAway/onebusaway-application-modules/wiki/API-Webapp-Configuration-Guide

We should figure out a way to merge these.

barbeau avatar Nov 02 '16 16:11 barbeau

@barbeau Oh yeah, I hadn't seen that. The wiki documentation on this is actually really good. I'll second merging chunks of it into the documentation.

colinmcglynn avatar Nov 02 '16 17:11 colinmcglynn

I'll take on this effort. I also want to make clear that's its the hosting organization that gets to ultimately decide the policy on throttling. Although its technically possible to disable throttling altogether, the impact on service side resources and hence hosting costs is enormous.

sheldonabrown avatar Jul 06 '18 15:07 sheldonabrown