DEV Community

Discussion on: Tell me an unpopular software opinion

 
jkhaui profile image
Jordy Lee • Edited

I've only ever tried RxJS with a React app and I loved it. The issue was I felt it's something with a lot of potential, but hard to find a concrete use-case for. Like I'm walking around with a hammer and everything looks like a nail. Or maybe I just don't properly understand it.

Could you provide some innovative uses of RxJS? Backend or frontend. RxDB is something that looks cool, basically like Firebase

Thread Thread
 
danmt profile image
Daniel Marin

For the backend I use it for sockets and event driven patterns like messaging, cqrs.

For the frontend I use it almost everywhere lol but I love it for state management, if you do React you probably know Redux, there's a library named redux-observable that implements Redux powered by RxJS.

If you asked me I use RxJS for almost any asynchronous programming task, it's more declarative and has cancellation, something that promises don't.

Thread Thread
 
koresar profile image
Vasyl Boroviak

Huh. Interesting.

From now on I'm going to explain what Vuex is like this : Redux+RxJS