-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26b6ae3
commit f5b4b0f
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
|
||
rules: [ | ||
{ | ||
// https://developer.zendesk.com/api-reference/introduction/rate-limits/ | ||
// Note that we are applying a conversvative rate limit regardless of the user's plan. | ||
// The rate limit below is based on the 100req/min limit imposed by the Update ticket endpoint. | ||
// It's better to stay conversvative than letting the requests error out leading to a bad user experience. | ||
limit: 100, // the quota is 100 per 60 seconds | ||
window: 1000 * 60, // 60 seconds | ||
throttling: 'window-sliding', | ||
queueing: 'fifo', | ||
resource: 'requests', | ||
scope: 'userId' | ||
} | ||
] | ||
}; |