“The latest versions of all Spotlets are zipped and bundled with the desktop client binary on every release, assets and all,” says Johansson.
As Johansson explains, “introducing a library is a discussion between a few people instead of decision that involves ~100 people and their various needs.” Shared functionalities across the Spotify development teamĪlthough spotlets and squads create a somewhat fragmented picture of a development team, things are unified. The advantage of this is that it makes technical decision making much easier. They all run inside Chromium Embedded Framework, each app living within their own little iframe, which gives squads the ability to work with whatever frameworks they need, without the need to coordinate tooling and dependencies with other squads.
Johansson explains how they work, saying: These features are known as ‘spotlets.’Įach of these spotlets are essentially web apps that come together to power the desktop app’s UI. Johansson explains that “a feature is generally owned by a single squad, and during normal conditions the squad has all it needs to develop and maintain its feature.” Each team has as many backend, front end, and mobile developers as necessary for the particular feature it owns. The Spotify team is made up of small squads of anywhere from 3 to 12 people. The languages are connected by an interface aptly called a ‘bridge.’ Spotify’s squads and spotlets C++ is used for functionality beneath the UI, with JavaScript sitting on top of it. Wherever UI is concerned, it uses JavaScript. JavaScript is used across the Spotify desktop client. How JavaScript is used on the Spotify desktop app What’s particularly interesting is how this intricate JavaScript has influenced the Spotify architecture and the way the development teams are organized. Responding to a question on Quora, Johansson says it could be “among the top 25 most intricate uses of JavaScript in the world.” It’s complicated and, according to Reddit, “kind of insane”. A former Spotify engineer, Mattias Peter Johansson, has outlined how the music streaming platform uses JavaScript on it’s desktop application.