p-throttle VS p-limit

Compare p-throttle vs p-limit and see what are their differences.

p-throttle

Throttle promise-returning & async functions (by sindresorhus)

p-limit

Run multiple promise-returning & async functions with limited concurrency (by sindresorhus)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
p-throttle p-limit
1 2
386 1,693
- -
5.6 4.2
2 months ago 6 months ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

p-throttle

Posts with mentions or reviews of p-throttle. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-28.
  • Beware of Promise.all
    6 projects | dev.to | 28 Oct 2021
    For API calls where you want to limit the number of calls per second, you can use the simple p-throttle library:

p-limit

Posts with mentions or reviews of p-limit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-28.
  • Batch uploading images
    1 project | /r/node | 23 Nov 2021
    What you're looking for is called parallel execution with a concurrency limit — execute asynchronous code in parallel but not more than X at the same time. You'd want to use a library to help with the concurrency limit. A popular one is p-limit.
  • Beware of Promise.all
    6 projects | dev.to | 28 Oct 2021
    For system calls where you want to limit the number of parallel executions, no matter how long they take, there is the simple p-limit library:

What are some alternatives?

When comparing p-throttle and p-limit you can also consider the following projects:

The gist - BullMQ - Message Queue and Batch processing for NodeJS and Python based on Redis

bree - Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.

agenda - Lightweight job scheduling for Node.js

growthbook - Open Source Feature Flagging and A/B Testing Platform