What happens when you click play on NETFLIX ?

blogur.in

Digital entertainment in India will be bigger than the world’s largest film industry. That’s because more and more Indians are logging on to services like YouTube, Hotstar and Netflix on smartphones and smart-TVs .Netflix is now a global force, it’s committed to creating high-quality original shows and movies that can’t be seen anywhere else, with a strategy built around binge watching. 

This post will going to be on tech-side, so if you want to know about the tech behind the service then stay tuned. If you are not a techy then go and enjoy your show on Netflix with some cool series releasing this week .

Netflix seems so simple. Press play and video magically appears. Easy, right? Not so much. So lets get started …… 

WHY ?

In fact, I’d like to thank Netflix for being so open about their system architecture. Over the years, Netflix has given hundreds of talks and articles on the same. Another reason for going into so much detail on Netflix is Netflix is just plain fascinating. Most of us have used Netflix at one time or another. Who wouldn’t love peeking behind the curtain to see what makes Netflix tick? 

Hundreds of microservices, one giant service

Lets just understand how NETFLIX structured on the technical side with some example .

Let assume you Activity App on your smartphone tracks all your fitness activity and store all the relevant information in a file – activity.txt . And someday you end up creating a new app called MyFitnessTracker for you which can access that activity.txt file and shows all the vitals records tracked by Activity app on your App. Simple and your app works flawlessly, you rocked .

Now after some days Activity App on your smartphone updated and now its no more store information in activity.txt instead they use database for the same. Hmm now you got a problem , your app crashes because its unable to find activity.txt in the system, and you lost all your important data from your app . 

All your work on MyFitnessTracker has gone into the trash because a change was made to Activity App that broke your app. And while it might not seem a big deal here, on a huge service like Netflix the entire application going down because a change was made to one part of it can not only ruin the experience for users, it also means that all other parts of the application have to be rewritten to accommodate that one tiny change you made to one part of the app. Such structure is what we known as Monolithic Architecture .

Netflix started their streaming services somewhere in 2007 , and they built two data-centers, located right next to each other. They experienced all the problems we talked about because with increase in demands they started scaling their system based on vertical scaling strategy . Netflix made big programs that ran on big computers. This approach is called building a Monolithic Architecture. One line statement for this will be – One program did everything. The problem is when you’re growing really fast like Netflix; it’s very hard to make a monolith reliable.

At that time, Netflix decided to move to AWS. AWS was just getting established, so selecting AWS was a bold move.

Turn Around 

Netflix made decision by rewriting the applications that run the entire service to fit into a microservices architecture — which means that each application, or microservice’s code and resources are its very own. It will not share any of it with any other app by nature. And when two applications do need to talk to each other, they use an application programming interface (API) . Developers can now make many changes, small or huge, to each application as long as they ensure that it plays well with the API. And since the one program knows the other’s API properly, no change will break the exchange of information.

From Servers to Screen 

I have break down the process into steps let discuss , first after receiving the content from producers they – 

In a nutshell….

6 thoughts on “What happens when you click play on NETFLIX ?

  1. you are really a good webmaster. The web site loading speed is incredible. It seems that you are doing any unique trick. Moreover, The contents are masterwork. you’ve done a wonderful job on this topic!

  2. Another thing I have noticed is for many people, bad credit is the response to circumstances past their control. For example they may be really saddled with an illness and because of this they have substantial bills for collections. It might be due to a job loss or even the inability to go to work. Sometimes divorce proceedings can truly send the money in a downward direction. Thanks for sharing your thinking on this weblog.

  3. With havin so much content and articles do you ever run into any issues of plagorism or copyright violation? My blog has a lot of exclusive content I’ve either authored myself or outsourced but it appears a lot of it is popping it up all over the web without my permission. Do you know any solutions to help prevent content from being ripped off? I’d really appreciate it.

  4. I like the helpful info you supply on your articles. I抣l bookmark your weblog and test again here frequently. I’m relatively certain I will be informed many new stuff right right here! Good luck for the next!

Leave a Reply

Your email address will not be published. Required fields are marked *