Reading: Why to use ReactiveX (RxJS) ?
ReactiveX (RxJS
Why to use ReactiveX (RxJS) ?

 

One question you may ask yourself, is why RxJS? What about Promises? Promises are good for solving asynchronous operations such as querying a service with an XMLHttpRequest, where the expected behavior is one value and then completion. The Reactive Extensions for JavaScript unifies both the world of Promises, callbacks as well as event data such as DOM Input, Web Workers, Web Sockets. Once we have unified these concepts, this enables rich composition.

What is ReactiveX ?

ReactiveX is a library for composing asynchronous and event-based programs by using observable sequences.

It extends the observer pattern to support sequences of data and/or events and adds operators that allow you to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety, concurrent data structures, and non-blocking I/O.

 

It is sometimes called “functional reactive programming” but this is a misnomer. ReactiveX may be functional, and it may be reactive, but “functional reactive programming” is a different animal. One main point of difference is that functional reactive programming operates on values that change continuously over time, while ReactiveX operates on discrete values that are emitted over time.

 

Why Use Observables?

The ReactiveX Observable model allows you to treat streams of asynchronous events with the same sort of simple, composable operations that you use for collections of data items like arrays. It frees you from tangled webs of callbacks, and thereby makes your code more readable and less prone to bugs.

 
///Declare an observable
public ISubject<MouseEventArgs> MouseMove;
///Publish data
MouseMove.OnNext(args);
///Subscribe to an observable
MouseMove.Subscribe(args => Display(args));

What all apps can be benefitials using RxJS ?

  1. stock quote
  2. tweets
  3. computer events
  4. Video Streaming apps
  5. live feeds/news apps
  6. geo-location tracking
  7. web service requests, etc.

Reactive Programming

ReactiveX provides a collection of operators with which you can filter, select, transform, combine, and compose Observables. This allows for efficient execution and composition.

You can think of the Observable class as a “push” equivalent to Iterable, which is a “pull.” With an Iterable, the consumer pulls values from the producer and the thread blocks until those values arrive. By contrast, with an Observable the producer pushes values to the consumer whenever values are available. This approach is more flexible, because values can arrive synchronously or asynchronously.

 

Write us for more information at info@linkites.com

http://www.linkites.com

 

70% Complete

Welcome, tell us about your project so we can get you a quote.

First, what is your idea called and what do you need help with?

This’ll take about 1-2 minutes.

What are we building? (Select all that you need)

Are we starting from scratch or building on top of an existing product?

Ideally, when would you need us to start by?

Tell us what you’re building. Feel free to include features, links to sketches, similar products or competitors, and existing apps.

What is the max budget you have planned to invest in the project? We’ll strive to make it work within your range

Schedule your call to discuss the project’s features, costs, and timelines. Select a date and time that works for you.

All done. Where would you like to receive your quote and where do we reach you for asking questions?





Thank you!

We look forward to reviewing your project and discussing it with you at


3:30pm EST on
Monday, Jan 2, 2018.

If you need to reach us earlier, you may do so at

info@linkites.com or +91-9806719331

1
2
3
4
5
6
7
8
9

Are you sure you want to cancel?

Your progress will be lost and we won’t be able to give you a quote on your project.