Member-only story

Day 35 of #100DaysOfCode

Part 2 — Understanding Flowables in RxJava

Learning RxJava shouldn’t be hard

Dhananjay Trivedi

--

Quick Intro

In RxJava basically there are two Observable object classes — Observable and Flowable. The difference between them is backpressure. Flowables are backpressure aware while Observables are not.

What is Backpressure?

Backpressure is when a flowable can’t process the values fast enough and need a way to tell the upstream producer to slow down. In many situations, it will lead to something like OutOfMemoryExceptions as your device is literally out of memory to handle the incoming amounts of data.

There are two types of Sources now,

--

--

No responses yet