Need advice about which tool to choose?Ask the StackShare community!

Redux

20.6K
15.2K
+ 1
647
RxJS

1.2K
514
+ 1
12
Add tool

Redux vs RxJS: What are the differences?

What is Redux? Predictable state container for JavaScript apps. Redux helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of that, it provides a great developer experience, such as live code editing combined with a time traveling debugger.

What is RxJS? The Reactive Extensions for JavaScript. RxJS is a library for reactive programming using Observables, to make it easier to compose asynchronous or callback-based code. This project is a rewrite of Reactive-Extensions/RxJS with better performance, better modularity, better debuggable call stacks, while staying mostly backwards compatible, with some breaking changes that reduce the API surface.

Redux belongs to "State Management Library" category of the tech stack, while RxJS can be primarily classified under "Concurrency Frameworks".

Redux and RxJS are both open source tools. It seems that Redux with 49.5K GitHub stars and 12.8K forks on GitHub has more adoption than RxJS with 19.7K GitHub stars and 2.26K GitHub forks.

Instagram, Intuit, and OpenGov are some of the popular companies that use Redux, whereas RxJS is used by Portfolium, Free Code Camp, and Onefootball. Redux has a broader approval, being mentioned in 1036 company stacks & 836 developers stacks; compared to RxJS, which is listed in 57 company stacks and 44 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Redux
Pros of RxJS
  • 186
    State is predictable
  • 147
    Plays well with React and others
  • 123
    State stored in a single object tree
  • 77
    Hot reloading out of the box
  • 71
    Allows for time travel
  • 13
    You can log everything
  • 10
    Great tutorial direct from the creator
  • 6
    Test without browser
  • 6
    Endorsed by the creator of Flux
  • 4
    Easy to debug
  • 2
    Granular updates
  • 1
    Blabla
  • 1
    Enforces one-way data flow
  • 4
    Easier async data chaining and combining
  • 3
    Steep learning curve, but offers predictable operations
  • 2
    Works great with any state management implementation
  • 2
    Easier testing
  • 1
    Ability to build your own stream

Sign up to add or upvote prosMake informed product decisions

Cons of Redux
Cons of RxJS
  • 10
    Lots of boilerplate
  • 5
    Verbose
  • 4
    Design
  • 3
    Steep learning curve
  • 3
    Steeper learning curve than MobX
  • 3
    Steeper learning curve than RxJs
  • 1
    Steep learning curve

Sign up to add or upvote consMake informed product decisions

What is Redux?

It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. t provides a great experience, such as live code editing combined with a time traveling debugger.

What is RxJS?

RxJS is a library for reactive programming using Observables, to make it easier to compose asynchronous or callback-based code. This project is a rewrite of Reactive-Extensions/RxJS with better performance, better modularity, better debuggable call stacks, while staying mostly backwards compatible, with some breaking changes that reduce the API surface.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Redux?
What companies use RxJS?
See which teams inside your own company are using Redux or RxJS.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Redux?
What tools integrate with RxJS?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

+12
5
3443
Oct 11 2019 at 2:36PM

LogRocket

+8
5
1560
+29
15
11397
+42
47
39245
+47
49
69199
What are some alternatives to Redux and RxJS?
Cycle.js
A functional and reactive JavaScript framework for predictable code
MobX
MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP). React and MobX together are a powerful combination. React renders the application state by providing mechanisms to translate it into a tree of renderable components. MobX provides the mechanism to store and update the application state that React then uses.
Flux
Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
Apollo
Build a universal GraphQL API on top of your existing REST APIs, so you can ship new application features fast without waiting on backend changes.
See all alternatives