Reader small image

You're reading from  Hands-On Reactive Programming in Spring 5

Product typeBook
Published inOct 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781787284951
Edition1st Edition
Languages
Tools
Right arrow
Authors (2):
Oleh Dokuka
Oleh Dokuka
author image
Oleh Dokuka

Oleh Dokuka is an experienced software engineer, Pivotal Champion, and one of the top contributors to Project Reactor and Spring Framework. He knows the internals of both frameworks very well and advocates reactive programming with Project Reactor on a daily basis. Along with that, the author applies Spring Framework and Project Reactor in software development, so he knows how to build reactive systems using these technologies.
Read more about Oleh Dokuka

Igor Lozynskyi
Igor Lozynskyi
author image
Igor Lozynskyi

Igor Lozynskyi is a senior Java developer who primarily focuses on developing reliable, scalable, and blazingly fast systems. He has over seven years of experience with the Java platform. He is passionate about interesting and dynamic projects both in life and in software development.
Read more about Igor Lozynskyi

View More author details
Right arrow

The basics of the Reactive Streams spec

The Reactive Streams specification defines four primary interfaces: Publisher, Subscriber, Subscription, and Processor. Since that initiative grew independently from any organization, it became available as a separate JAR file where all interfaces live within the org.reactivestreams package.

In general, the specified interfaces are similar to what we had earlier (for example, in RxJava 1.x). In a way, these reflect the well-known classes from RxJava. The first two of those interfaces are similar to Observable-Observer, which resemble the classic Publisher-Subscriber model. Consequently, the first two were named Publisher and Subscriber. To check whether these two interfaces are similar to Observable and Observer, let’s consider the declaration of those:

package org.reactivestreams;

public interface Publisher<T> {...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Reactive Programming in Spring 5
Published in: Oct 2018Publisher: PacktISBN-13: 9781787284951

Authors (2)

author image
Oleh Dokuka

Oleh Dokuka is an experienced software engineer, Pivotal Champion, and one of the top contributors to Project Reactor and Spring Framework. He knows the internals of both frameworks very well and advocates reactive programming with Project Reactor on a daily basis. Along with that, the author applies Spring Framework and Project Reactor in software development, so he knows how to build reactive systems using these technologies.
Read more about Oleh Dokuka

author image
Igor Lozynskyi

Igor Lozynskyi is a senior Java developer who primarily focuses on developing reliable, scalable, and blazingly fast systems. He has over seven years of experience with the Java platform. He is passionate about interesting and dynamic projects both in life and in software development.
Read more about Igor Lozynskyi