Alex Sullivan: From RxJava to Flow, A Reactive Journey

Опубликовано: 04 Март 2026
на канале: Kotlin Office Hours
257
5

In this talk, we'll walk through converting a reactive Android app from using RxJava to using coroutines and Flow. We'll talk through some of the traditional networking or database solutions used in conjunction with RxJava, how that changes moving to coroutines and Flow, and how that informs the rest of the reactive structure of an Android app.

A quick breakdown of the talk is as follows:

What this talk isn't: Replacing simple async calls that used to use RxJava to use regular Coroutines
What this talk is: Embracing reactive programming in a world of coroutines
Preamble: Why the question of RxJava vs Coroutines is the wrong question - the right question is RxJava vs Flow
Introduction to the app
Walk through the functionality
Walk through the existing reactive structure using RxJava
Adding coroutines and Flow:
Moving from subjects to channels
Moving from Observables to Flow
How do we handle Singles or Maybes? (Hint: the way you handle single or optional values everywhere else!)
What does it look to observe a stream of click events?
Final thoughts: What do we gain by moving from RxJava to Flow and other Coroutines? How hard is it to convert?

Slides:
https://drive.google.com/open?id=1Gvy...