Posts

How YouTube uploads and streams billions of videos with ease?

Image
Did you know that there are about 500 hours of videos uploaded on YouTube every minute?  That's huge. It's like watching 230 movies.  But, this is possible as YouTube has over 2 billion users. It is the second most visited website after Google and the second most used social platform after Facebook. You can find more of such mind-boggling stats here . But now let's focus on how YouTube does all of this? Let's discuss some functional aspects of YouTube which make it a God of video streaming. When you upload a video Once you upload a video you must have seen a processing bar. Video Processing People upload videos on YouTube with different file types, resolutions, and formats from their favorite devices. YouTube focuses on making these videos playable on every possible device around the globe. Now you might be thinking why not play the original video? So it might be a case that the uploaded video is so big that it becomes impossible to distribute the video due to constant

DHCP: Dynamic Host Configuration Protocol

Image
Suppose, you own a cyber cafe and you have a network in which there are 5 computers. Now you want to add a new computer to the network. So you configure the IP configuration on the computer and assign a static IP address to it followed by the subnet mask, default gateway, and DNS server address.  Later, you thought of increasing your business and bought 10 more computers. Now to add the newly bought 10 computers, you need to configure the IPs for each and every one of them. You are a smart guy so you configured 10 random IPs to these computers. But now when you start these computers, one of the computers was not able to connect to the network. That's bad !! This happened due to the IP conflict. In a network it is very important to have unique IP addresses for every device connected. But in your case two computers in the network mistakenly had the same IP address. To avoid this cumbersome activity and to restrict your network from IP conflict you should use a DHCP server. DHCP to th

Concurrency vs Parallelism

Image
You are probably reading this post as you are familiar with multithreading and multiprocessing but having a feeling of being somewhat confused with the concurrent and parallel way of execution. Basically, Concurrency and Parallelism are related to the way an application executes. It is a parameter that is taken into consideration while designing various applications. So, let us dive deep into this and see what these terms are and what is the exact difference between them. Concurrency When an application is dealing with multiple tasks at the same time i.e. it makes progress on more than one task, it is said to be concurrent. Still confused, right?? Dealing with multiple tasks means that if an application has only one processor for execution, the processor will not be able to process multiple tasks at the same time. In this case, the scheduler kicks in and schedules the tasks such that the processor makes progress on one task, and then context switches to another ta

What happens when you watch stuff on Netflix?

Image
While watching a Netflix movie have you ever wondered how your favorite video streaming app operates? How does it earn money? How is it able to show online streaming videos without hindrance? This article focuses on this very topic. Netflix is a huge on-demand video streaming service provider out there. To start with let's first have a look at Netflix statistics as of today. Netflix's net revenue is $20.16 billion. Netflix has more than 182 million subscribers, including 69 million in the US. Netflix operates in more than 200 countries. Netflix plays more than 1 billion hours of video each week. Netflix hosts almost 35,000 hours of content. Netflix accounts for over 37% of peak internet traffic in the United States. Netflix ranks #197 in Fortune 500. Source What we can conclude from above Netflix is a giant in video streaming. It has a lot of money. It has a huge subscriber base. It has a rich library of video content. Basically, Netflix ear