Dropbox
Dropbox logoDropbox · Feature trail

Mobile Camera Uploads Reliability and Performance

2 posts · Feb 2021 – Mar 2022

What this trail covers

Dropbox's mobile camera upload feature has undergone a significant rewrite to improve reliability and performance. The Android implementation now uses native Kotlin and libraries like WorkManager and Room, replacing a problematic shared C++ library. This rewrite addresses platform-specific background restrictions, optimizes network usage with intelligent retries and backoff intervals, and enhances upload speed through parallel uploads and optimized memory management. The new system ensures photo uploads are more reliable and performant. The team also invested in measuring and optimizing app startup time, identifying and fixing performance offenders like Firebase Performance library initialization, feature flag migrations, and initial user loading. Practices like measuring third-party library impact and caching expensive computations were adopted to prevent future performance degradation.

All Dropbox trails