Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
volos-quota-apigee
Advanced tools
This is an implementation of API quotas for the Volos family of modules. It uses Apigee as a backing store to keep quotas synchronized across many nodes. Furthermore, this is the correct module to use if deploying the Node.js application to Apigee, because it will result in quotas that work in the same way as the quotas that are built in to the Apigee platform.
Once initialized, the interface to the module is exactly what is in the "volos-quota-common" module. See that module for detailed docs.
This module depends on an "adapter," which is a special API that is deployed to Apigee for your specific organization in the Apigee cloud. This proxy is hosted in the Volos GitHub repo, which is here:
https://github.com/apigee/volos
The proxy is inside the "proxy" directory. Instructions for deploying it may be found here:
https://github.com/apigee/volos/blob/master/samples/basic/README.md
To initialize a quota, you call "create" on the exported module and pass a single "options" object. It can contain the following parameters:
Once the quota has been initialized, the module that is returned has the programming interface defined by the "volos-quota-common" module.
The following parameters are optional:
"apigeeMode" supports two values:
By default, the module will use Apigee Edge functionality when available, and fall back to API calls when it is not.
var quotaModule = require('volos-quota-apigee');
var quota = quotaModule.create({
timeUnit: 'day',
interval: 1,
allow: 10,
uri: process.env.APIGEEURI,
key: process.env.APIGEEKEY
});
quota.apply({ identifier: 'Foo', weight: 1 }, function(err, result) {
if (err) {
throw err;
} else {
console.log('Quota status: %s', result.isAllowed);
}
});
FAQs
Apigee provider for Quota enforcement in the Volos system.
The npm package volos-quota-apigee receives a total of 45 weekly downloads. As such, volos-quota-apigee popularity was classified as not popular.
We found that volos-quota-apigee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.