Design Reactive Apps in Kotlin
summary
Builds a lightweight agent component in Kotlin that tracks jobs by ID and stores Disposables in a map (uses Completable/Single from RxJava), preventing duplicate executions and offering killMe/saveMe strategies to pick which duplicate wins. Adds group keys (map of maps) so group-level kills cancel related jobs, supports lifecycle hooks to cancel all on destroy, and allows persistence and plugins. Example run cancels the first two duplicates and lets the third complete.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 2:41Problem Statement
- 4:55Solution Explanation
- 7:28Simple Solution
- 11:42Static Utility
- 13:09Strategies
- 15:16Implementation
- 22:59CreateAxe
- 24:35Named arguments
- 25:03Previously
- 26:26Lifecycle
- 30:06Outro
related talks
41mHanding problems, Coroutines & ReactiveX
22mBuilding Responsive Applications with RxKotlin
40mBuilding Asynchronous Mechanisms in Android App, Using Kotlin Coroutines
41mMaking a Kotlin, Architecture Components, Rx and Coroutines sandwich
38mCoroutines by Example
49mKotlin Reactive Programming Patterns
28mConcurrency for Imposters
48mMobiconf 2018: Ivan Morgillo, Mobimeo
