HomeGoals

Home

Goals

SignUp / Login

Implement playlist generator for Spotify
Live Session#Business Case Study

Implement playlist generator for Spotify

Have you ever wondered how Spotify generates a playlist and how they are stored with maximum efficiency? Join now to know Spotify’s implementation.

4.6

(456 ratings)

Features

Shareable Certificate
Earn a Certificate upon completion
100% Online Live Class
Mentor driven live classes
Instant Doubt Resolution
Get your doubt clarified instantly
Practice Material
Get Notebook to revise, practice, test yourself and interact with mentor

Live Session to be Scheduled

Description

Spotify is a Swedish audio streaming and media services provider founded on 23 April 2006 by Daniel Ek and Martin Lorentzon. They follow a freemium revenue model, in which they offer free streaming of music but are ad-supported. They also offer premium features for a subscription fee. During its launch, it was considered the only legal and cheap alternative to iTunes. iTunes generally used to charge $10 per album. Due to the very high price of songs, many people used to download pirated copies of songs.



Spotify used to generate random playlists for its free users. Users can then just either play a previous song or the next song, but these interactions were limited, say 5. In this brand story, you will learn how Spotify used to generate random playlists for its free users using: 

  1. Pointers
  2. Linked Lists


The songs are stored in several Spotify servers, instead of sending the whole song to the user’s device, its address is sent. You will see how can we implement this in C++. In this session, you will also learn how to code this playlist generator in C++.


Disclaimer: The code won’t actually play the song, but you will understand its backend.



Chapter 1

Introduction

1.1 Spotify - Online Songs Streaming
1.2 The Problem
NoteBook
Chapter 1

Introduction

1.1 Spotify - Online Songs Streaming
1.2 The Problem

Notebook

1. Introduction

Chapter 1 Introduction

1.1 Spotify - Online Songs Streaming

Spotify is a Swedish audio streaming and media services provider founded on 23 April 2006 by Daniel Ek and Martin Lorentzon. It is the world's largest music streaming service provider, with over 381 million monthly active users, including 172 million paying subscribers.

As Spotify was launched in 2006, before that if you wanted to listen to any music, you just had two options:

  1. Buy the song from iTunes, and download it. (Legal)
  2. Download the song's pirated copy. (Illegal)

At that time, the average cost of one album was $10, which is quite expensive. If you listen to 100 songs daily, then your total bill comes out to be $100 (considering 1 album have 10 songs). This is the reason why more than 50% of people used to download pirated copies.


Daniel Ek is the current CEO of Spotify and is co-founder of Spotify. Ek’s innovative business model for providing access to music online differed from other services in that it did not involve charging for song downloads. Spotify customers could listen to online streaming music for free if they were willing to allow display or audio advertising. For $5 or $10 a month in subscription fees, however, consumers could avoid the advertisements. In 2006, it become the only cheap and legal way of listening to music.

Certificate

Implement playlist generator for Spotify


Want to know more?