Detangling Your Dependency Graph
summary
Instagram modularizes its Android app by carving features into feature directories with an interface/impl split, uses a dependency analyzer script to find easy leaves to extract, and enforces rules with a small mod squad plus diff-time dependency tests and APK/DEX size alerts. The team prototypes example modules, documents patterns, federates work across 20+ product teams, and already catches bad deps on diffs; full app-wide gains (startup, build, APK shrinkage via Dynamic Feature use) are gradual but underway.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:53Performance risks of growth
- 4:01Impact of tangled dependencies
- 10:23Modularization approach
- 13:31Moving code to feature modules
- 18:26Challenges of ongoing modularization
- 22:00Enforcing modularization rules
- 24:07Conclusion and next steps








