Introduction to reactive programming

Reactive programming is customizing with non-concurrent information streams. That means it is coded with asynchronous data.

Streams are shoddy and omnipresent. Anything can be a stream—factors, client inputs, properties, reserves, information structures, and so forth. For instance, envision your Twitter channel as an information stream in a similar manner to snap occasions. You can tune in to that stream and respond as needs be.

Over that, you are given an astounding tool stash of capacities to consolidate, make, and channel any of those streams. That is the place the practical enchantment kicks in. A stream can be utilized as a contribution to another. Indeed, even different streams can be utilized as contributions to another stream. You can consolidate two streams. You can channel a stream to get another that has just those occasions you are keen on. You can delineate esteems starting with one stream then on to the next new one.

Let's see the following uses of reactive programming:

  • External service calls: Many of the backend services these days implement the RESTful model and operate over HTTP. This makes their underlying protocols synchronous and blocking. External service calls help you avoid waiting for every IO completion.
  • Concurrent message consumers: Message processing in the reactive programming framework includes measuring micro-benchmarks and is fast and efficient. The results of messages routing are at the staggering rate of tens of millions per second.

Let's see the following technologies and frameworks based on the reactive programming model in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset