官术网_书友最值得收藏!

Reactive programming

 Over the last few years, JavaScript has become one of the most used languages, and you have already heard of the term reactive in the world of JavaScript, both in a backend and a frontend context.

So, What exactly is reactive programming?—It's a programming paradigm that has asynchronous data streams at its core. The data flows through various parts of the program in the form of a message. The message is produced by a Producer and works in a fire-and-forget manner in which the program produces a message and forgets it. The Subscriber who has subscribed (shown interest) to such messages, gets the message, processes it, and passes on the output as a message for other parts of the program to consume.

In the world of databases, NoSQL presented a huge shift from relational databases. Similarly, this programming paradigm is a huge shift from the conventional programming paradigm (imperative programming). The good thing is that without much knowledge, you have already been coding a bit of reactive code in your day-to-day coding life. Wherever you see the word stream, you are indirectly using a piece of reactive code. Such programming has a name of its own and this aspect has become more mainstream in the industry. Many languages understand the advantages this brings and they have started to natively support this paradigm of programming.

主站蜘蛛池模板: 新野县| 海宁市| 吴江市| 新津县| 广宁县| 双鸭山市| 左权县| 静宁县| 新乡县| 陇西县| 新郑市| 镇雄县| 聂拉木县| 汤原县| 奉节县| 准格尔旗| 内黄县| 眉山市| 麻阳| 泗阳县| 青岛市| 昔阳县| 承德市| 中阳县| 共和县| 阜宁县| 运城市| 海丰县| 大兴区| 钟山县| 阜新市| 清河县| 南丰县| 颍上县| 平塘县| 神农架林区| 阳朔县| 新疆| 托克逊县| 南昌县| 贵州省|