Wednesday 18 August 2021

Schedulers.computation() v/s Schedulers.io() in RxJava/RxAndroid

I have read through so many answers on SO like the following use-cases-for-rxjava-schedulers , what-is-the-difference-between-schedulers-io-and-schedulers-computation , rxjava2-schedulers-io-vs-schedulers-computation-with-large-concurrent-request.

The most common explanation is use Schedulers.computation() for CPU intensive work

and use Schedulers.io() for interaction with the file system, interaction with databases or services, REST API calls

By CPU intensive work I am assuming/considering Image Resizing/operations, Large Data sets, etc. (please add some other CPU intensive tasks if you know any which are normally performed on an Android App)

My question is

  1. what qualifies as a large data set in Android? (tangible sense)
  2. If network calls or queries to the database respond with the huge data set(as per question 1) then what?


from Schedulers.computation() v/s Schedulers.io() in RxJava/RxAndroid

No comments:

Post a Comment