Need advice about which tool to choose?Ask the StackShare community!
Apollo vs Redux: What are the differences?
Developers describe Apollo as "GraphQL server for Express, Connect, Hapi, Koa and more". 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. On the other hand, Redux is detailed as "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.
Apollo and Redux are primarily classified as "Platform as a Service" and "State Management Library" tools respectively.
"From the creators of Meteor" is the primary reason why developers consider Apollo over the competitors, whereas "State is predictable" was stated as the key factor in picking Redux.
Apollo and Redux are both open source tools. It seems that Redux with 49.5K GitHub stars and 12.8K forks on GitHub has more adoption than Apollo with 7.55K GitHub stars and 940 GitHub forks.
Instagram, Intuit, and OpenGov are some of the popular companies that use Redux, whereas Apollo is used by CircleCI, Swat.io, and Flexport. Redux has a broader approval, being mentioned in 1036 company stacks & 836 developers stacks; compared to Apollo, which is listed in 131 company stacks and 127 developer stacks.
Pros of Apollo
- From the creators of Meteor12
- Great documentation5
- Open source3
- Real time if use subscription2
Pros of Redux
- State is predictable190
- Plays well with React and others149
- State stored in a single object tree125
- Hot reloading out of the box78
- Allows for time travel72
- You can log everything14
- Great tutorial direct from the creator11
- Test without browser6
- Endorsed by the creator of Flux6
- Easy to debug5
- Enforces one-way data flow2
- Granular updates2
- Blabla1
Sign up to add or upvote prosMake informed product decisions
Cons of Apollo
- File upload is not supported1
- Increase in complexity of implementing (subscription)1
Cons of Redux
- Lots of boilerplate11
- Verbose6
- Design5
- Steeper learning curve than RxJs4
- Steeper learning curve than MobX4
- Steep learning curve4