-
Book Overview & Buying
-
Table Of Contents
TypeScript 5 Design Patterns and Best Practices - Second Edition
By :
In practical terms, reactive programming represents a paradigm where we use declarative code to describe asynchronous communications and events. This means that when we submit a request or a message to a channel, it will be processed or accepted at a later time. As we obtain data as part of the response that we are trying to build, we send it back asynchronously. It then becomes the responsibility of the consumer to react based on those changes.
Before implementing this communication, it is important to establish the format in which data will be transmitted, whether it is sent in chunks or returned in a single response. This predefined structure helps ensure that both producers and consumers can effectively handle the data exchange.
Next, we will describe a few of the most popular communication techniques and patterns that you can use when developing reactive programming systems.
With the Pull pattern, the consumer of...