The Spotify Play Read online

Page 3


  The Spotify CTO made a profound first impression on Fredrik, who was immediately drawn in by the prospect of applying his knowledge to solve a contemporary problem. After all, the battle between young file-sharers and record companies was on everyone’s lips. Fredrik also had a great deal of respect for many of the other engineers who had left KTH to join Spotify.

  To start, Fredrik agreed to take on a part-time role as “technical advisor.” A few months later, he started working full-time. Soon, he was staying at work late into the night. Eventually, he would stay behind until the early morning, taking cabs back to his apartment in the suburb of Rinkeby. A few hours later he would wake up, take the subway back into the city, and start over. Daniel Ek tracked his progress, and figured Fredrik Niemelä would soon be due for a promotion.

  We Are Family

  The office on Riddargatan quickly became a second home for the young engineers building Spotify’s desktop client. Many of them were in their mid-twenties working their first real job. They would show up late in the morning but work long hours. The staffers had squeezed a foosball table into the office, and some would stay behind for some late-night poker, too.

  The guys working on the “back end” technology had camped out in the apartment’s largest room, past the closet with the humming servers. Floral-patterned curtains hung over the windows, right next to a whiteboard that Andreas Ehn presided over. Fredrik Niemelä had quickly become his right-hand man, primarily dedicated to building the streaming technology. Others were occupied with the database or the advertising platform. A programmer named Magnus Hult was in charge of all the metadata that threaded together songs, artists, and album art. The team would organize Spotify’s music database like books in a library. Users would be able to search by artist or song, and discover other music by the same artist. They could also find cover songs, guest appearances, and songs by the same producer. Later, Spotify would pay for short biographical texts and become a sort of encyclopedia for music. Eventually, the company would develop algorithms that made recommendations, pushing music by Rihanna on Beyoncé fans.

  There was a smaller room for those working on the “front end” of the client. This was the domain of Ludvig Strigeus, who built the user interface for Windows, and then for Mac, all by himself. Ludde worked out of Gothenburg but made regular visits to the team in Stockholm. He worked closely with Rasmus Andersson, a designer who would touch up his work and create Spotify’s graphic design.

  At Spotify’s first offices on Riddargatan 20.

  Daniel Ek and Rasmus Andersson (seated). (Rasmus Andersson)

  A third room housed the rest of the Spotify team. That included Petra Hansson, Spotify’s general counsel, and Daniel Ek, when he wasn’t out negotiating licenses with the record labels. In February 2007, they were joined by Jonathan Forster, Spotify’s first director of sales. He soon realized that his job wouldn’t be easy, complaining that clients didn’t see the value of targeted ads.

  “You can’t sell steak to people who want ground beef,” the Brit would tell his colleagues.

  It fell on Martin Lorentzon to deal with investors and venture capital firms. On a regular day, he would hit the gym and go out for lunch with a business acquaintance. Now and then, he would drop by the office and crack jokes with the engineers.

  “What’s up, slackers?” he’d say, teasingly.

  Co-founder Martin Lorentzon interrupting a meeting in Spotify’s second offices with a little dance. (Rasmus Andersson)

  The programmers chuckled. They knew he was up to something important, but not exactly what. Then again, he didn’t really have a clear grasp of what they were up to, either.

  Martin would set the tone for a culture of pranks and practical jokes around the office. He would later describe how employees slipped inappropriate magazines into one another’s bags, or entered fake status updates on one another’s Facebook pages.

  At one point during an early pitch at a venture capital firm in the US, Lorentzon recalled opening his laptop and unleashing a pre-installed program that performed a Google search for the term “How to enlarge a small penis.”

  The prank, initiated by an employee, caught Daniel off guard and the pitch ended up failing.

  Slice Me Nice

  Spotify’s engineers were now forging ahead to build a first-class product. Daniel Ek had insisted that users should be able to find a song instantly and play it without delay. Soon, all the technical discussions revolved around latency, which had a number: 200 milliseconds. Fredrik Niemelä had read that if a song started playing within 0.2 seconds of a button being pushed, people would experience it as immediate. The bandwidth in Sweden’s broadband networks was already good enough for songs to load faster than they were being played. So, in theory, it should be possible to start playing a song while it was still loading.

  The challenge with bittorrent was that the files were broken down into pieces that arrived in a “torrent,” so in no particular order. Forcing the protocol to change this would slow the process down. As Andreas Ehn’s team worked on solving this challenge, his “back end” team turned their office into a war room. For weeks, the engineers scribbled on the white board, vigorously debating how the bittorrent technology could be repurposed to suit their needs. Finally, one of the sketches seemed to make sense. The solution even looked elegant.

  One illustration showed how the existing torrent system cut the music files vertically, like a loaf of bread. These pieces were downloaded, assembled, and then played from left to right, or beginning to end. Since the pieces arrived in random order, they all needed to be in place for the song to begin to play without interruption. Another illustration showed the same music file cut lengthwise, like the layers of a submarine sandwich. It was sliced vertically, too, but only four times. That meant that whatever piece of the song arrived first, it was far more likely to contain a part of the first few seconds—hence the song could start streaming more quickly. The team tested the theory, which worked in practice. The files were streamed from the servers in the nearby closet, and the music played instantly.

  With this major challenge solved, the engineers started developing a patchwork of solutions that would ensure that the music kept playing, even when the connection was shaky. The main trick was to load, or buffer, the songs that the user was likely to want to hear next. The very first selection would always be hard to anticipate. But if the user was listening to a playlist, the next song on the list would likely follow. The system, the engineers reasoned, could thus start loading the next few anticipated songs into the computer’s cache memory, and simply clear it if the user made another selection.

  After a bit of trial and error, the coders figured that any unexpected selection would have to stream from Spotify’s own, high-end servers. The peer-to-peer technology was used only for song choices that were easy to predict, such as the next few songs on an album or a playlist. This division of labor also cut costs, as the other users’ computers helped store and transfer slices of songs. Another trick was to download a user’s favorite songs and store them in their own computer’s memory. These hacks would ensure a smooth user experience and guard against glitches and delays. Spotify’s first protocol became a sort of hybrid. It was a torrent network supported by a central server, bolstered by a bunch of homespun features. It wasn’t flawless, but it was close enough.

  In January 2007, the first demo of Spotify’s music player was ready. Everyone who tried it found the experience magical. The engineers could hardly believe what they had accomplished in just a few months. Spotify’s client was better than anything else on the current market.

  “It was rocket science, for real,” an early admirer would express. Daniel was delighted with his engineering team and quickly promoted Fredrik Niemelä to the role of Chief Product Officer, CPO.

  At this point, practically all the songs in Spotify’s database were pirated music files from The Pirate Bay and similar websites. The irony escaped no one at the compan
y. Spotify, after all, aimed to be a legal alternative to piracy. But what were they supposed to do—buy millions of songs on iTunes to fill up the database? Even if they did, the service still wouldn’t be legal when the beta version came out.

  Spotify needed to finish building the product, patent its newly developed technology, and seal licensing deals with the record companies. Then, everything would probably work out. With a little luck, Daniel Ek hoped to launch the service in the fall of 2007.

  Police & Thieves

  As Spotify was building its music player, music industry executives were growing increasingly frustrated with all the file-sharing in Sweden. Per Sundin, the Nordic head of Sony BMG, would recall how he lost it at a dinner in Stockholm with some newfound acquaintances.

  “So what you’re saying is that you’re a family of thieves?” the 43-year-old blurted out over the table.

  He and his wife Jenny were guests at the home of a couple they’d recently gotten to know, and the subject of piracy was about to ruin yet another pleasant evening. Jenny rolled her eyes. She often found herself wishing her husband would shut up about what he did for a living.

  “Yes, but everyone downloads stuff. We download. We’ve stopped buying CDs altogether,” the husband on the other side of the table said.

  Moments like these made Per Sundin’s blood boil. He knew that his wife would chastise him when they got home, but he couldn’t contain himself. A new flood of accusations came pouring out.

  “How would you feel if your kids shoplifted at the local convenience store? Would that be okay, just because it’s easy? What do you think artists are supposed to live on?”

  By early 2007, piracy had caused the record industry’s revenue to decline for six years straight. Nowhere in Europe was the problem worse than in Sweden, where 1.2 of the nation’s 9 million people were said to share pirated music files. Per Sundin had already been forced to lay off staff a number of times during the past few years.

  When his international colleagues within Sony BMG asked him why file-sharing was so common in his country, he’d point to several factors. One was the late arrival of iTunes. Apple’s music store didn’t launch in Sweden until 2005, and by then, the nation had already given the world Kazaa, The Pirate Bay, and μTorrent. Another reason was Sweden’s “home PC reform” from 1998, a government program that subsidized home computers and spawned all kinds of computer literacy, including hacking and file-sharing. Then there were all the incentives that Swedish politicians had provided for the expansion of broadband networks. Most American households could only dream of the high speeds and low prices readily available in Sweden.

  But it wasn’t just the prevalence of piracy that bothered Per Sundin. It was the lax attitude toward the problem, shown by lawmakers and the public alike. For him, the low-water mark arrived with the national elections of 2006. A newly formed political party called The Pirate Party was gaining support among young voters. As a result, neither leader of the country’s two major political parties was willing to slam file-sharing.

  “We need to make sure that young people who do this downloading don’t see themselves as criminals,” Prime Minister Göran Persson said in a live television debate a few weeks ahead of the election.

  Instead of criticizing his opponent, Fredrik Reinfeldt, the leader of the conservative opposition party, wavered on the issue.

  “Are you watching the debate?” Per Sundin’s mother said when she called him on the phone. “You need to quit the record industry!”

  Per Sundin would soon leave Sony BMG, but he would remain in the industry. He was about to become the head of Universal Music in Sweden. Soon, a new streaming service called Spotify would pop up on his radar.

  Save Tonight

  In March 2007, a few members of Spotify’s engineering team had just pulled another all-nighter at the office. By the early morning, Andreas Ehn, Fredrik Niemelä, and a developer named Mattias de Zalenski had put together the music player’s back and front ends, thus giving birth to the service. When it was time to register the first account, Andreas and Fredrik exchanged glances. After a tense moment, Fredrik conceded to the man who had recruited him.

  “CTO goes before product,” the CPO said.

  Andreas would recall that, indeed, he registered Spotify’s very first account. Soon, the team would create more, selectively distributing beta invites among their friends. These soon sought-after invites were even said to be sold for money on the KTH campus. Sophia Bendz, the now-head of information and marketing at Spotify who had been recruited from the PR firm Prime, was in charge of generating hype in the right circles.

  Late night at Spotify’s Stockholm headquarters in 2007.

  Seated: Sophia Bendz. To her right: Martin Lorentzon. (Rasmus Andersson)

  Ludvig Strigeus and Rasmus Andersson had built a sleek client. Spotify’s beta users could search for music and create playlists. There were separate pages for artists and albums, and links between the two. And, most importantly, the music began streaming immediately. It felt like pressing play on a locally stored file in iTunes. In the Spotify client, encrypted files were temporarily saved in the cache memory on the user’s computer. The decryption key wasn’t saved on the hard disk, but in the cloud. Users gained access to the music, but they didn’t own it. The age of music streaming was born.

  Daniel Ek was amazed by the progress, but he was also plagued by a guilty conscience. He was one of few people at Spotify who knew how poorly the negotiations with the record labels and music publishers were going. Still, after paying a lump sum to Sweden’s performance-rights organization, STIM, he was able to secure test licenses for a limited beta-release.

  Spotify’s beta version hit the market in April 2007. To mark the occasion, the team gathered for a group photo. In it, fourteen nerdy-looking young men are seen smiling into the camera. Developer Gunnar Kreitz is wearing a black t-shirt with KTH’s logo on the chest. Next to him stands Andreas Ehn, in one of his neatly pressed shirts. Further back stands Jonathan Forster, the only one to wear a suit jacket. Daniel Ek’s friend from high school, Martin Birkeldh, tasked with administrative duties around the office, looks over the shoulder of the lanky Fredrik Niemelä, who is sporting his goatee and wearing his long hair pulled back. Crouching in the front row is the designer Rasmus Andersson, dressed in a blue and white striped shirt.

  The Spotify team in April 2007. Standing from left: Mattias Arrelid, Gunnar Kreitz, Andreas Ehn, Per Malm, Jonathan Forster, Magnus Hult, Daniel Ekberger, Tommie Gannert, Martin Birkeldh, Fredrik Niemelä. Crouching from left: Rasmus Andersson, Jon Åslund, Andreas Mattsson.

  Front row: Daniel Ek. (Rasmus Andersson)

  Spotify’s twenty-four-year-old co-founder, Daniel Ek, is crouched in the very front, dressed in a blue polo shirt, with tousled hair and a bald spot. The young chief executive is grinning. His co-founder Martin Lorentzon is not in the picture.

  Invisible Touch

  Pär-Jörgen Pärson stared into the glow of the laptop computer. To him, the music player looked like a dark gray version of iTunes. But when he typed in his favorite band, Killswitch Engage, and pressed play, the song started immediately, without the slightest delay. It didn’t seem to download or buffer. It was just there.

  On the other side of the table sat Martin Lorentzon, smiling wryly. Pär-Jörgen Pärson had once been his boss at the venture capital firm Cell Ventures. That firm no longer existed, but Pär-Jörgen was now a partner at the venture capital firm Northzone, with offices in one of the five high rises near the Hötorget square in central Stockholm. Martin had come there to dazzle him, and had clearly succeeded.

  “Where do the songs come from?” Pär-Jörgen asked.

  Martin showed him that the computer was connected to the internet through his cell phone. Pär-Jörgen was taken aback. Over the years, he’d seen hundreds of investors burn their fingers on tech companies promising to reshape the music industry, but what he had in front of him could turn into somethi
ng truly great, he thought. Eight years ago, Pär-Jörgen had missed his chance to invest in Martin’s ad-tech company Tradedoubler. He didn’t want to make the same mistake again. Spotify, he thought, could be the biggest thing to come out of Sweden since Skype.

  The seasoned investor did his best to maintain his poker face. He didn’t want to seem too interested. He knew that negotiating with Martin wasn’t going to be easy, since he was already so goddamn rich.

  Finally, the Northzone partner hinted that he would consider investing in Spotify. But Martin didn’t want to state the terms quite yet. He just smiled and said he’d get back in touch.

  Rågsved

  DANIEL EK GREW UP IN Rågsved, one of Stockholm’s first concrete suburbs situated along the subway’s green line going south. His father was out of the picture early on. Before Daniel was born, the elder Ek had chosen to live with another woman he was seeing. Daniel had a half-sister who was only three months younger than him, and another two half-siblings on his father’s side. There seems to have been very little, if any, interaction between the two families. Later in life, Daniel would describe how he and his father were barely in touch.

  Daniel was raised by his mother, Elisabet. Early on, he learned how to keep himself occupied. Eventually, Elisabet met her new husband, Hasse, who became Daniel’s stepdad. When Daniel was ten years old, Hasse and Elisabet had a child together, Daniel’s half-brother Felix.

  Elisabet worked at an after-school center just across the park from their three-story apartment building. Next door was Daniel’s grade school, Snösätraskolan. The family didn’t have much money, but Daniel would describe his childhood as happy and full of music. Elisabet listened to The Bee Gees, Diana Ross, and the Swedish singer-songwriter Ted Gärdestad. At an early age, Daniel learned how to play the family’s Spanish guitar with nylon strings. He played children’s songs to start, but gradually advanced to music by The Beatles and Nirvana. In school, he took music lessons and learned how to play drums, bass, piano, and the accordion. As a teenager, he played in a couple of local bands and took lead roles in school musicals.