ASOS Jul 19, 2023

Slaying the Monolith: API Implementation and Modularization in Android

Article Summary

Sean Coyle from ASOS reveals how they're dismantling their Android monolith using a pattern that slashes recompile times. The secret? Splitting every feature into API and implementation modules.

ASOS's Android team faced the classic monolith problem: slow builds, tangled dependencies, and features that couldn't evolve independently. Coyle walks through their modularization strategy using the API/Implementation pattern, a dependency inversion approach that separates what modules do from how they do it.

Key Takeaways

Critical Insight

The API/Implementation pattern enables independent feature evolution and faster compile times by decoupling module contracts from their concrete implementations.

The article includes a practical MusicService example showing exactly how to bridge API and implementation using dependency injection.

Recent from ASOS

Related Articles