Spotify May 28, 2020

Spotify Modernizes Client-Side Architecture to Accelerate Service on All Devices

Article Summary

Spotify lifted the 10,000 Liked Songs limit. But that simple feature request triggered a year-long architecture overhaul affecting 100,000 lines of code.

Engineer Carl Engström shares how his team modernized Spotify's client-side architecture to serve users on older devices and slower networks. What started as removing a limit became a fundamental rethink of how the app handles data at startup.

Key Takeaways

Critical Insight

By shifting from loading all metadata into RAM at startup to batch downloading and pre-sorting on disk, Spotify dramatically improved performance for users on older devices while removing the Liked Songs limit.

The team had to identify dozens of ways users can 'like' a song and map each one to the new architecture while keeping the plane in flight.

Recent from Spotify

Related Articles