The What, Why, and How of Mastering App Size

Viktor Petrovski (Android Engineer)
11 min readbeginner
--
View Original

Overview

The article discusses the significance of managing app size in software development, emphasizing its impact on user experience and environmental sustainability. It outlines various app size metrics, the importance of maintaining an optimal size, and the strategies employed by Spotify to monitor and control app size during the development process.

What You'll Learn

1

How to measure and analyze different types of app sizes

2

Why reducing app size can improve installation rates and user experience

3

How to implement app-size checks in the development process

4

When to apply the app size policy for exceptions

Key Questions Answered

What are the different types of app sizes and their impacts?
The article identifies four types of app sizes: download size, install size, storage size, and update size. Each type affects users differently, influencing their experience based on network and storage constraints, particularly in emerging markets with limited device capacity.
Why is app size critical for users in emerging markets?
App size is crucial for users in emerging markets because many use older smartphones with limited storage. As these markets represent 85% of the global population, larger app sizes can lead to installation challenges and force users to prioritize which apps to keep.
How does Spotify manage app size during development?
Spotify employs safety nets in their development process, including automated checks during pull requests to evaluate app size impacts. Changes exceeding a 50KB threshold require additional approval, ensuring that app size remains manageable.
What is the environmental impact of app size?
The article highlights that large app sizes contribute to significant network traffic and energy consumption. For instance, Spotify updates in 2022 resulted in over 930 petabytes of traffic, equating to approximately 65,000 tonnes of CO2 emissions annually.

Key Statistics & Figures

Decrease in installation conversion rate
1% for every 6MB increase
This statistic highlights the direct relationship between app size and user installation behavior.
Total network traffic from Spotify app updates in 2022
930+ petabytes
This figure illustrates the massive scale of data transfer associated with app updates, emphasizing the environmental impact.
Estimated CO2 emissions from app updates
65,000 tonnes
This statistic provides insight into the environmental consequences of app size, equating it to the emissions from 65,000 round trip flights between London and New York.
Annual reduction in carbon footprint by decreasing app size by 1MB
560 tons of CO2
This highlights the potential environmental benefits of optimizing app size.

Technologies & Tools

Software
Emerge Tools
Used for analyzing app size differences between builds during the pull request process.

Key Actionable Insights

1
Implement automated checks for app size during the pull request process to prevent uncontrolled growth.
By integrating these checks, development teams can proactively manage app size, ensuring that new features do not lead to excessive increases that could hinder user experience.
2
Establish a clear app size policy that includes guidelines for when exceptions can be made.
This policy helps developers understand the importance of app size while providing a structured approach for justifying necessary increases, balancing feature development with user needs.
3
Monitor app size contributions by individual teams to foster accountability.
Attributing app size impacts to specific teams encourages ownership and motivates teams to optimize their contributions, ultimately leading to a more efficient application.

Common Pitfalls

1
Failing to monitor the cumulative impact of small pull requests on app size can lead to significant growth over time.
Many small changes may not trigger alerts, but collectively they can substantially increase app size. Regular audits and monitoring are necessary to catch these gradual increases.