
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@dt-esa/dynatrace-api-balancer
Advanced tools
A wrapper around Axios that balances and throttles requests across tenants, clusters and cluster nodes.
A wrapper around Axios that balances and throttles Dynatrace API requests across tenants, clusters and cluster nodes.
A dependency map can be found here.
Using {@link BalancedAPIRequest}:
const api = new BalancedAPIRequest(limits, tenants);
const cancellablePromise = api.fetch(options).then(data => { ... }).catch(err => { ... });
// OR
const cancellableEventEmitter = api.fetch(options, (err, data) => { ... });
Using {@link DirectAPIRequest}:
const api = new DirectAPIRequest(limits);
const promise = api.fetch(options).then(data => { ... }).catch(err => { ... });
// OR
const eventEmitter = api.fetch(options, (err, data) => { ... });
For convenience aliases have been provided for the following request methods:
get(url, options[, onDone])
delete(url, options[, onDone])
post(url, data, options[, onDone])
put(url, data, options[, onDone])
The {@link DirectAPIRequest} wrapper responds to and recovers from 429 and 503 errors gracefully (up till specified limits). It also automatically consolidates paged responses (from both v1 and v2 APIs). Finally, it unifies the various types of errors that may happen while initializating a request, issuing it, and processing its response. This greatly simplifies writing code that makes Dynatrace API requests.
The {@link BalancedAPIRequest} adds an efficient load balancing, queuing and request throttling layer that protects the Dynatrace cluster from a request overload while ensuring that for each request the best (i.e. most available) cluster node is selected to handle that request. Additionally, it natively supports cancelling any request (or all) if the caller is no longer interested in the response.
Note that the interfaces of {@link BalancedAPIRequest} and {@link DirectAPIRequest} are virtually identical.
The {@link BalancedAPIRequest} is a cornerstone of several Dynatrace ESA solutions, most notably the ETL Service and the API Security Gateway. Additionally, {@link DirectAPIRequest} is used by the Dynatrace API Helper, a solution that greatly simplifies the process of writing code to access Dynatrace APIs. Please contact esa@dynatrace.com for more information.
FAQs
A wrapper around Axios that balances and throttles requests across tenants, clusters and cluster nodes.
We found that @dt-esa/dynatrace-api-balancer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.