Reactive programming the programming with asynchronous data streams. In Javascript, we have promises and callbacks. A promise/callback could be thought of as data streams that emit one event. Reactive Programming takes this concept to the next level. Reactive Programming is the process of setting up these data flows and linking their events to actions in the system. Reactive programming is a programming paradigm oriented around data flows and the propagation of change. This means that it should be possible to express static or dynamic data flows with ease in the programming languages used, and that the underlying execution model will automatically propagate changes through the data flow.

Why one should use it:

  • Reactive Code is easier to reason about
    Reactive code allows you to focus on interdependent events. This makes separation of concerns easier then reasoning about implementation details in a large system.
  • You avoid “Callback”
    Events abstract away the need for explicit callbacks and the awful amount of nesting that comes with them. The result is cleaner, more readable code.
  • Models interactive apps nicely
    Modern apps are highly interactive. There’s live feeds, ajax calls when buttons are clicked, synchronization of state between multiple clients. Data streams capture this functionality really nicely without having to build out our own massaging systems from scratch.
  • Better Usage Of Resources 
  • Since all the code is asynchronous, multiple tasks can be accomplished at the same time. This             better utilizes our computers resources and makes the applications run faster.
Share This :

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>