redux VS async

Compare redux vs async and see what are their differences.

redux

Predictable state container for JavaScript apps [Moved to: https://github.com/reduxjs/redux] (by reactjs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
redux async
13 16
55,566 28,070
- -
8.8 7.9
about 3 years ago 19 days ago
TypeScript JavaScript
GNU General Public License v3.0 or later 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.

redux

Posts with mentions or reviews of redux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-30.
  • ReactJS onClick in list item
    1 project | /r/codehunter | 13 May 2022
    I have looked at TODO example (TODO GITHUB). In that example, onClick list item will dispatch an action and in the end it will change the Global State (Redux Store).
  • Redux not updating components when deep Immutable state properties are updated
    1 project | /r/codehunter | 5 May 2022
    It seems generally getting Immutable to work with Redux is not as simple as it seems:How to use Immutable.js with redux?https://github.com/reactjs/redux/issues/548
  • The following modules couldn't be hot updated: (Full reload needed)
    2 projects | /r/codehunter | 30 Apr 2022
    I'm trying to setup hot module reloading in a react/typescript (with TSX) environment. I have used the react/redux real-world example as a model in getting things going, and this is what I have so far:
  • Why do we need to use import 'babel-polyfill'; in react components?
    1 project | /r/codehunter | 3 Apr 2022
    { "name": "redux-shopping-cart-example", "version": "0.0.0", "description": "Redux shopping-cart example", "scripts": { "start": "node server.js", "test": "cross-env NODE\_ENV=test mocha --recursive --compilers js:babel-register", "test:watch": "npm test -- --watch" }, "repository": { "type": "git", "url": "https://github.com/reactjs/redux.git" }, "license": "MIT", "bugs": { "url": "https://github.com/reactjs/redux/issues" }, "homepage": "http://redux.js.org", "dependencies": { "babel-polyfill": "^6.3.14", "react": "^0.14.7", "react-dom": "^0.14.7", "react-redux": "^4.2.1", "redux": "^3.2.1", "redux-thunk": "^1.0.3" }, "devDependencies": { "babel-core": "^6.3.15", "babel-loader": "^6.2.0", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", "babel-preset-react-hmre": "^1.1.1", "cross-env": "^1.0.7", "enzyme": "^2.0.0", "express": "^4.13.3", "json-loader": "^0.5.3", "react-addons-test-utils": "^0.14.7", "redux-logger": "^2.0.1", "mocha": "^2.2.5", "node-libs-browser": "^0.5.2", "webpack": "^1.9.11", "webpack-dev-middleware": "^1.2.0", "webpack-hot-middleware": "^2.9.1" }} Here is webpack config example taken from https://github.com/reactjs/redux/tree/master/examples
  • What is ownProps in react-redux?
    2 projects | /r/codehunter | 26 Mar 2022
    I am reading the API on react-redux and looking at one of Redux' github examples: Redux todo app
  • What is the core difference of redux & reflux in using react based application?
    2 projects | /r/codehunter | 17 Mar 2022
    Recently I conducted a preliminary study on developing an E-commerce site and discovered that redux and reflux both come from flux architecture in Facebook and that both are popular. I am confused about the difference between the two.
  • why do you need to bind a function in a constructor
    1 project | /r/codehunter | 16 Mar 2022
    I have a question relavent to this code: https://github.com/reactjs/redux/blob/master/examples/async/containers/App.js
  • how to set initial state in redux
    1 project | /r/codehunter | 13 Mar 2022
    I'm trying to figure out how to set an initial state for a store in redux. I'm using https://github.com/reactjs/redux/blob/master/examples/todos-with-undo/reducers/index.js as an example. I tried to modify the code such that the todos had a value initialized.
  • How does a redux connected component know when to re-render?
    1 project | /r/codehunter | 17 Nov 2021
    P.S I'm following the todo list example bundled with the redux package.
  • Why do we need middleware for async flow in Redux?
    1 project | /r/codehunter | 20 Oct 2021
    Action creators are no longer required to be pure. So, thunk/promise middleware was definitely required in the past, but it seems that this is no longer the case?

async

Posts with mentions or reviews of async. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-16.
  • Avoid the Promise.all pitfall
    1 project | dev.to | 12 Oct 2023
    Well you could just install the async package which has lots of useful functions like mapLimit which will reduce the burden and only run a number in parallel.
  • What is this callback in async.parallel function?
    1 project | /r/learnprogramming | 8 Aug 2022
    Have you checked out the docs for the async library they are using?
  • How to limit concurrency with Python asyncio?
    1 project | /r/codehunter | 22 Apr 2022
    Edit:2. What's a good library that takes care of common async patterns? (Something like async)
  • I Avoid Async/Await
    7 projects | news.ycombinator.com | 16 Apr 2022
    Async/await is certainly not promises. In fact it would be much better implemented without promises as I proposed here: https://es.discourse.group/t/callback-based-simplified-async...

    I would even say that async/await is anti-promise, it takes the main functionality of promises, a caching layer for results and errors that allows you to add the code continuation later and elsewhere (which is a major footgun imo) and coerces the execution flow back to going on the next line and provided immediately at compile time which results in a cleaner flow but not as clean, stateless, efficient or functional as if you were to remove the promises completely. Having an additional caching layer and state machine around every asynchronous function call is quite inefficient.

    The essence of async/await is not promises, it's the underlying javascript generator (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...) functionality combined with asynchronous code to stop and start the generator. It's the ability to pause and resume function execution based on asynchronous operations.

    The promise functionality, the caching layer and state machine for results is basically sanitized away with async/await, it becomes dead-weight computation. The only benefit of promises in async/await code is being able to more easily interface with other promise laden code which you don't need once you have async/await and a library like https://www.npmjs.com/package/async for more complex cases.

    Note that promises based async/await is also a mess of an implementation that breaks stack traces and needs to support tons of odd statement corner cases (basically anything that can return an object that could be a promise) whereas a continuation passing style async/await would be a much simpler implementation that would only apply to function calls and maintain stack traces. We get that stack trace support automatically because of the great work of whoever implemented javascript generators which seem to already carry stack traces across paused/resumed functions (if you don't wrap in promises).

  • What is the difference between async.waterfall and async.series
    1 project | /r/codehunter | 2 Apr 2022
    The nodejs async module: https://github.com/caolan/async provides 2 similar methods, async.waterfall and async.series.
  • JavaScript ES6 promise for loop [duplicate]
    1 project | /r/codehunter | 22 Mar 2022
    With async I'd simply use async.series().
  • Some questions about events and promises
    2 projects | /r/node | 18 Mar 2022
    I don't understand. Sure you could spawn a ton of processes, but things might be bogged down. There are utilities out there for doing work queues.... so only N workers are running at any one time. The async library has some utilities for that. https://github.com/caolan/async
  • Caolan Asyncjs vs Async/Await: Which One to Use for Async Operations in NodeJS
    1 project | dev.to | 28 Feb 2022
    The documentation of asyncjs is quite straightforward and easy to read. As we've only seen a couple of use cases in this article, I'd recommend to go the asyncjs documentation and check out other possibilities with the library. You can also try to replicate the same using async/await to solidify your understanding of where the library might still make sense.
  • [AskJS] How were asynchronous functions written before Promises?
    1 project | /r/javascript | 2 Feb 2022
    It basically was tons and tons of callbacks. They'd nest weirdly deep and be a pain to work with. If you're curious, here's a link to one of my favorite JavaScript libraries from those days - it gave you a bunch of neat utilities for dealing with async code.
  • Aren't promises just callbacks?
    1 project | /r/codehunter | 2 Jan 2022
    api(function(result){ api2(function(result2){ api3(function(result3){ // do work }); });}); Which I could use a library like async for anyway, with something like:

What are some alternatives?

When comparing redux and async you can also consider the following projects:

react-rainbow - 🌈 React Rainbow Components. Build your web application in a snap.

Bluebird - :bird: :zap: Bluebird is a full featured promise library with unmatched performance.

carbon - A design system built by IBM

moment - Parse, validate, manipulate, and display dates in javascript.

antd - An enterprise-class UI design language and React UI library

q - A promise library for JavaScript

gestalt - A set of React UI components that supports Pinterest’s design language

contra - :surfer: Asynchronous flow control with a functional taste to it

eui - Elastic UI Framework 🙌

Simple-Series-Parallel - A minimalist utility module for running async functions in series or parallel

nvm - Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

neo-async - Neo-Async is thought to be used as a drop-in replacement for Async, it almost fully covers its functionality and runs faster