Displaying 1 to 20 from 58 results

bottleneck - Task scheduler and rate limiter

  •    Javascript

Bottleneck is a lightweight and efficient Task Scheduler and Rate Limiter for Node.js and the browser. When dealing with services with limited resources, it's important to ensure that they don't become overloaded.Bottleneck is an easy solution as it does not add much complexity to your code.

MessageThrottle - A lightweight Objective-C message throttle and debounce library.

  •    Objective-C

MessageThrottle is a lightweight, simple library for controlling frequency of forwarding Objective-C messages. You can choose to control existing methods per instance or per class. It's an implementation of function throttle/debounce developed with Objective-C runtime. For a visual explaination of the differences between throttling and debouncing, see this demo. To run the example project, clone the repo and run MTDemo target.

throat - Throttle a collection of promise returning functions

  •    Javascript

Throttle the parallelism of an asynchronous, promise returning, function / functions. This has special utility when you set the concurrency to 1. That way you get a mutually exclusive lock. This returns a function that acts a bit like a lock (exactly as a lock if concurrency is 1).




freno - freno: cooperative, highly available throttler service

  •    Go

Cooperative, highly available throttler service: clients use freno to throttle writes to a resource.Current implementation can throttle writes to (multiple) MySQL clusters, based on replication status for those clusters. freno will throttle cooperative clients when replication lag exceeds a pre-defined threshold.


throttling - Throttle a function and cache the result for x milliseconds

  •    Javascript

Throttle a function and cache the result for x milliseconds.The arguments parsed to the callback will be cached according to the same rules as described previously, so subsequent executions of runner will just call the supplied callback function with the previous arguments until the cache expires.

valvelet - Limit the execution rate of a function

  •    Javascript

This is a small utility to limit the execution rate of a function. It is useful for scenarios such as REST APIs consumption where the amount of requests per unit of time should not exceed a given threshold.This module is very similar to node-function-rate-limit. The difference is that valvelet works seamlessly with promise-returning functions.

node-slow-stream - A throttleable stream, for working in the slow-lane

  •    Javascript

Throttling is performed on a per-write basis, so in this example the ReadStream from the file is writing 64-byte chunks at a time. The SlowStream is only allowing them through at a rate of one per 5ms.Back-pressure is properly applied so if you're working with properly implemented streams you shouldn't run into memory issues.

p-debounce - Debounce promise-returning & async functions

  •    Javascript

Returns a function that delays calling fn until after wait milliseconds have elapsed since the last time it was called.Promise-returning/async function.

p-queue - Promise queue with concurrency control

  •    Javascript

Useful for rate-limiting async operations. For example, when interacting with a REST API or when doing CPU/memory intensive tasks.Here we run only one promise at the time. For example, set concurrency to 4 to run four promises at the time.

debounce-fn - Debounce a function

  •    Javascript

Returns a debounced function that delays calling the input function until after wait milliseconds have elapsed since the last time the debounced function was called.It comes with a .cancel() method to cancel any scheduled input function calls.

rate-limit - Meteor package to rate-limit a function by queuing up calls (instead of dropping them like throttle or debounce)

  •    Javascript

Easily rate-limit a function to run no more often than every X miliseconds, by queuing up calls. All calls will be eventually executed, unlike throttling or debouncing, which drop extra calls. This is useful for API clients, web crawling, or other tasks that need to wait at least some amount of time between calls, but for which throttling per se (dropping calls) is unacceptable.

throttle-function - Takes a function, returns a function that will can only be called a certain amount of times per second

  •    Javascript

Takes a function, returns a function that will can only be called a certain amount of times per second.

debounce - Debounce functions

  •    Javascript

Useful for implementing behavior that should only happen after a repeated action has completed. Creates and returns a new debounced version of the passed function that will postpone its execution until after wait milliseconds have elapsed since the last time it was invoked.