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

  • Spring 5.0 Projects
  • Nilang Patel
  • 245字
  • 2021-07-02 12:35:01

Reactive Streams

Reactive Streams is described simply as an initiative to provide a standard for asynchronous stream processing with non-blocking backpressure. It is a small and straightforward statement. However, it is essential to note that the first focus here is on the asynchronous stream processing and not just on the asynchronous programming. As discussed earlier, asynchronous systems have been around for a long time.

Before processing a stream, comes receiving the stream data. Asynchronously, this would mean managing the risk of uncertainties in the world of streams. For example, how much more data or messages could there be? Another challenge might be how to know when the stream has finished sending data. There could be a lot of questions, and we will see all of them in a little while.

Reactive Streams is used to perform Reactive Programming in Java. It is an API specification or, say, low-level contract given by the collaborations of various companies like Pivotal, Netflix, Red Hat, Twitter, Lightbend (previously known as Typesafe), Kaazing, Oracle, and many more. You can consider the Reactive Streams API to be just like JPA or JDBC. The actual implementations are provided by various vendors.

For example, JPA specifications have various vendors like Hibernate, TopLink, Apache OpenJPA that provide actual implementation. Similarly, there are many popular JVM-based libraries that support Reactive Programming like Reactor, Akka stream, Ratpack, Vert.x, and so on. They all provide an implementation of the Reactive Streams specifications, which bring interchangeability.

主站蜘蛛池模板: 汉寿县| 塘沽区| 金昌市| 邵阳市| 平果县| 类乌齐县| 通榆县| 项城市| 康定县| 华宁县| 枣强县| 徐汇区| 垦利县| 资中县| 瓮安县| 武宣县| 屯门区| 广西| 承德县| 红原县| 遂宁市| 南靖县| 苏州市| 迁安市| 木里| 黎平县| 仁怀市| 湘潭县| 株洲市| 开平市| 嘉善县| 彭水| 闽清县| 锦州市| 六安市| 涿鹿县| 进贤县| 泽库县| 万荣县| 横峰县| 九龙坡区|