~/talk

Migrating from Rx to Coroutines — Tinkoff Mobile's Experience

TalkinRussianat CodeFest 12 · 2022-05-28..05-29· [android]
links:none on file
slides:none on file

A Kotlin engineering team at Tinkoff Mobile describes migrating their 2-year-old app from Rx (ReactiveX) to Kotlin coroutines. The talk covers why Rx was often excessive for their multithreading needs, how they experimented with coroutines in a small test app, and then rolled out a full migration across a large codebase without halting main feature development, sharing practical problems encountered and benefits gained from running coroutines in production for over two years.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 2:15Project overview and motivation
  3. 4:45Why switch from Rx to Coroutines
  4. 5:26Key Coroutines concepts explained
  5. 6:09Choosing the first migration target
  6. 6:52Setting up Coroutines in the project
  7. 8:17Updating Retrofit and Room interfaces
  8. 9:20Rewriting repository layer code
  9. 10:24Maintaining backward compatibility
  10. 11:05Handling background operations and dispatchers
  11. 12:09Replacing Java synchronization
  12. 13:13Common pitfalls and async misconceptions
  13. 14:13Using Coroutines in the presentation layer
  14. 15:17Error handling in Coroutines
  15. 16:43Exception handler scope limitations
  16. 17:07SupervisorJob for isolated coroutines
  17. 18:08Using try-catch with Coroutines
  18. 19:14When not to use try-catch
  19. 19:58Testing and debugging Coroutines
  20. 20:39Migration timeline and team involvement
  21. 21:20Post-migration results and benefits
  22. 22:46Handling edge cases and team consensus
  23. 23:28Negative experience: CancellationException issues
  24. 24:54Fixing CancellationException leaks
  25. 25:58Detecting CancellationException in code
  26. 26:40Converting callback-based libraries
  27. 27:42Example: Android Animator integration
  28. 28:47Advantages of async animation with Coroutines
  29. 29:31Custom Coroutines builder syntax
  30. 31:41Flexible Coroutines syntax design
  31. 32:46Coroutines vs Rx: final comparison
  32. 33:48Mental barriers to migration
  33. 34:54Team and candidate attraction benefits
  34. 35:34Conclusion and call to action
  35. 36:59Q&A: Flow vs Coroutines
  36. 37:23Q&A: Fatal errors after migration
  37. 38:46Q&A: Performance impact
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.