~/talk

Isolating Account Data in Cash App With Coroutines & DI

Talkat droidcon New York 2025 · 2025-06-25..06-26· [frontend-architecture]
links:none on file
slides:none on file

Cash App moves from a single global DI graph to a phased DI graph that binds a coroutine scope per component, tying long‑running work to account vs onboarding lifetimes. Tried Compose + Molecule; Compose hung so engineers roll a custom collectLatestUndispatched. Storage moves from shared preferences to sandboxed storage links in SQLite with signin‑group GC. Migration spans ~June 2023–March 2025, touches ~20 mobile teams, and ships successfully after iterative AB testing and leak hunts.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Cash App login flow
  3. 3:17Evolving customer needs
  4. 8:16New architectural goals
  5. 12:13Migration plan and Dagger
  6. 13:59Coroutine scopes and concurrency
  7. 17:55Why structured concurrency
  8. 20:46Storage isolation challenges
  9. 25:43File system sandboxing
  10. 27:29First attempt failures
  11. 29:37Simplified storage design
  12. 31:21UI glitches during swaps
  13. 32:24Memory leaks with LeakCanary
  14. 33:07Feature flagging struggles
  15. 35:55Debugging with traces
  16. 37:39Eliminating shared preferences
  17. 39:05Why two years
  18. 41:10Lessons learned
  19. 43:39Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.