In this video, learn about RxJava so you know a bit more about it.
- [Instructor] Hi, welcome to section Introducing RxJava 2. In this section, we are going to start talking about what RxJava is. Next, it's going to be about the different ways it can handle back pressure. After that, we'll see how it implements reactive streams, and other entities that will make our life easier. On top of that, we'll learn the different possibilities to create and observe sources of information. Because RxJava 2 has evolved out of RxJava 1, in some occasions, we'll mention how the new version is different or if the old version supports that functionality as well.
Let's kick off with the first video of this section, Introduction to RxJava 2.0. In this video, we are going to introduce RxJava, the differences between RxJava 1 and RxJava 2, as well as some facts about it. RxJava describes itself as a Java VM implementation of reactive extensions, a library for composing asynchronous and event-based programs by using observable sequences. Probably some of you are familiar with RxJava 1. The same concepts can be applied in Version 2, but read carefully about it, because some of them might have changed.
What's the difference between RxJava 1 and 2? RxJava 2.0 has been completely rewritten from scratch on top of the reactive stream specification, as we saw in the previous module. The specification itself has evolved out of RxJava 1, and provides a common baseline for reactive systems and libraries. The library is made by Netflix. They were using reactive programs internally for some time, and then they released the tools they were using under an open-source license. The Apache 2.0 license, to be precise.
RxJava 2 was officially released in October 2016, after 18 months of development cycle. RxJava tries to be very lightweight, around 1.1 millibyte, and it's implemented as a single JAR, that is, it is focused on just the simple abstraction and related higher-order functions. RxJava is hosted at reactivex.io, and the library at github.com/ReactiveX/RxJava. Because it is an open-source library, as we mentioned in the first volume, you can contribute to it.
Hope you know a little more about RxJava with this introduction. In the next video, we are going to talk about the different ways we have to handle back pressure with RxJava. See you there.
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- What is reactive programming?
- Java 9 reactive features
- Creating and observing sources with RxJava
- Unit testing
- Akka streams in a reactive environment
- Building a sample reactive application