~/talk

Keynote: Asynchronous Dependency Injection

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [android]
links:none on file
slides:none on file

Covers migrating slow dependencies from eager injection to Dagger Producers vs RxJava + Dagger, swapping @Provides for @Produces, wiring an executor module and using listenable future callbacks so dependencies build on a cache thread pool in parallel. Shows concrete workarounds: deferred-logger wrapper, converting futures to Lazy, and how producers collapse serial graphs. Flags concrete limits: libraries that force main-thread init (Fresco + OkHttp), deep serial dependency chains, high mental overhead and months of work for modest wins — typically 100–200 ms — so treat as a last resort.

AI-written summary · about

  1. 0:00Introduction
  2. 2:23What is dependency injection
  3. 7:07Why async dependency injection
  4. 11:46Code approach with RX Java
  5. 16:54Dagger Producers overview
  6. 23:18Crossing thread boundaries
  7. 26:52Clever implementation tricks
  8. 31:59Should you use async DI
  9. 35:09Conclusion and Q&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.