Scaling architecture at Lyft
summary
App architecture evolves from one developer to 50+ engineers and two apps sharing a codebase; Lyft moves to single-activity UI with lightweight viewcontrollers, componentized reusable views and feature flags that can disable cross‑app features instantly. Tooling choices: Dagger2 for compile‑time DI, RxJava/Kotlin coroutines and Mobius/MVI for state, SQLite for offline, Swagger/Protobuf for API, Bazel/Build cache to cut 700+ modules’ incremental builds to ~2:30. Result: modular owners, nightly release trains and automated publishing speed rollout and reduce cross‑team breakages.
AI-written summary · about
chapters (32)
- 0:00Introduction to scaling
- 2:15Mindset for large scale
- 3:19Design system for consistency
- 5:06Multi-layer app architecture
- 6:51Single Activity approach
- 8:58ViewController lifecycle
- 10:24Separating business logic
- 11:47MVI vs MVP vs MVVM
- 13:12State management with MVI
- 14:16Reusable UI components
- 17:26Feature flags for flexibility
- 18:31Screen routing architecture
- 20:58Data storage strategies
- 22:48RxJava and Flow alternatives
- 23:49Error handling in streams
- 25:16Modularization benefits
- 26:43Fast incremental builds
- 28:07Automated code quality checks
- 29:51Release train process
- 31:37Trunk-based development
- 32:40Domain-driven API design
- 34:04Feature toggles explained
- 35:29Dynamic string resources
- 36:31API schema documentation
- 38:17Dependency injection choices
- 41:15Splitting apps into modules
- 42:21Separate applications strategy
- 43:45Automating app releases
- 44:26Force updates implementation
- 45:27Team structure at scale
- 47:15Scaling beyond expectations
- 49:01Final advice and Q&A
