I believe there is a variation to Gaurav's understanding on open-connect caching mechanism. A new uploaded video DOES NOT goes directly to the caching server, instead they are resolved to a 'a small Netflix DB replica" in that region, which in-term populates the caching layer for new videos or most frequently accessed videos. The distinction is important because otherwise the design is assumed to directly populate OC CDNs, which is not the case. So for example, if a viewer in Australia wants to stream a non-cached US content: Instead of directing all the Netflix traffic through under-sea cables, Netflix copies the video file (transcoded) from US-based storage to a storage location in Australia once during off-peak hours. Once the video has reached the continent, it’s copied to all the Open Connect servers present in the ISP networks. This is not to point out a flaw in the video, just a clarification.
@gkcs2 жыл бұрын
Thank you for this amazing clarification 😁
@adityatripathi19042 жыл бұрын
@@gkcs I am glad. Keep making fun content😄
@Nikhilajayk5 жыл бұрын
Content apart , the new animations that you've added are really nice. Extra efforts are appreciated! Keep em coming !
@ayasswain5 жыл бұрын
Another informative video from you. Nice explanation. Thanks. Just wanted to add something on the caching part. Many websites take help of CDN providers like Akamai to do the caching on behalf of them. The CDN providers have the required infrastructure across the globe wherein they have placed their caching servers in most of the countries.
@gkcs5 жыл бұрын
That's interesting, thanks!
@tejassardana62665 жыл бұрын
Don't be surprised if you hit 500K subscribers by the end of 2019. Your content quality is skyrocketing.
@gkcs5 жыл бұрын
Thank you!
@DiaryOfMuhib4 жыл бұрын
@@talesara74 It's system design and it's not for everyone to understand, what did you expect? People mainly use this channel for technical system design interviews.
@pratsway9613 жыл бұрын
You said that from your perspective. But the sad reality is People really don't like good contents😅😂. They can watch a 3hrs movie, but couldn't watch this type videos for 10mins😑
@letsrock73542 жыл бұрын
Gaurav I love your content and soon I guess will be joining your InterviewReady platform...Please offer me some special discount bhai 😍
@vinayak186f3 Жыл бұрын
It's almost 2023 and he still has 488k 🥲
@shubhankar9155 жыл бұрын
Showing Gupt in local popular movie would make Booby Deol really Proud. Savage AF Gaurav! :D
@natashasen25753 ай бұрын
Wonderfully explained. Everything is clear and simple. Love your content.
@gkcs3 ай бұрын
Awesome, thank you!
@nehaambasta11914 жыл бұрын
Man, you know how to teach with fun! I must say presentation and video editing is very well done in your videos.
@adityapatange84 жыл бұрын
What a beast! Loved your reference to Amazon S3 out of nowhere! 😎✔️
@anupammangal89903 жыл бұрын
Hey Gaurav, I was just wondering how the Open Connect or KZbin Red boxes are any different from the long existing concept of CDN (Content Delivery Network). The only change is, being big companies they have the money and resources to create their own personal CDNs and brand them which is kind of building your own house instead of renting one. Is there something I am missing here ?
@gkcs3 жыл бұрын
They are very similar, yes.
@samiles1710942 жыл бұрын
I was having the same question as how these Oppen connect boxes are different from CDNs.
@akashthoriya4 жыл бұрын
holy shit! Just fall for these videos; Thank you from bottom of my heart! Please make more video on this topic!
@amarchhabra21755 жыл бұрын
Bro - Thanks for the great video! Learned a lot. Just subscribed. Keep the great content coming!
@Iamjohnsmithindia5 жыл бұрын
Keywords = CDN , predictive content delivery , content pre-fetch and so on...
@vinayshrivastava2664 жыл бұрын
Yes Content Delivery Network plays a really important role if the geographic location of physical server is far and also I think what these OTTs would be doing is what we are getting in recommendation might be based on geo location rather than your watch history , this way if one guy from ur location has seen some movie it gets cached to a CDN and then when u request for the same content , since it comes in ur recommendation its extremely fast
@charanteja46325 жыл бұрын
Please do some lectures on docker internals like Cgroups, namespaces, union capable file systems
@sushruttabakade60885 жыл бұрын
You have the most unique content on KZbin, man. No bs, pure knowledge. Keep going.
@gkcs5 жыл бұрын
Thanks!
@himanikumar79794 жыл бұрын
Blown by the simplicity you explained such a complex topic!
@user-zu2uh8zg6p4 ай бұрын
Thanks for your descriptions
@gkcs4 ай бұрын
Cheers!
@algoseekee5 жыл бұрын
It's amazing to see how Guarav improves the quality of his content, and I can tell you, guys, as a newbie tech KZbinr, it's a big deal. Keep it up, bro! ;-)
@gkcs5 жыл бұрын
Thanks Victor!
@walaaelsayed87644 жыл бұрын
Very helpful and simple for anyone who is preparing for software design interview. Your way of explaining is interesting and funny 😊
2 жыл бұрын
The material you have in this playlist is gold! I did not expect to learn so much from it. Thanks a lot!
@gkcs2 жыл бұрын
You're welcome!
@prnk1392 жыл бұрын
great efforts thanks a lot ! i remember my childhood days after seeing the GUPT poster! :-)
@andriidanylov9453 Жыл бұрын
Thank You for sharing. Very nice details and very good description
@sankalparora9374 Жыл бұрын
Short, simple and full of interesting concepts. Thanks!
@gkcs Жыл бұрын
Thank you!
@catchroniclesbyanik4 жыл бұрын
Moral : Steal that Open Connect Box
@shubhamtech893 жыл бұрын
Champion presentation. Just wanted to see a graphical representation of the adaptive bit rate ladder through Netflix's eyes.
@Rishabh1994942 жыл бұрын
I just started watching your videos. Your content is Amazing.
@shivkojha4 ай бұрын
Learning a lot . Thank You gaurav for creating these masterpieces.
@manishramesh54465 жыл бұрын
Wow, excellent video. Love your unique style of breaking down the topics in chunks and explaining them neatly. Keep them coming.
@pvrcs5 жыл бұрын
Can you explain some of the advanced concepts of video streaming too? For eg., Bandersnatch? I wonder how Netflix is providing conditional streaming of video chunks based on user selection.
@vk215634 жыл бұрын
ISP cache is really interesting, wondering how they have handled security on top of it across multiple geography??
@INCREDIBLEGUYOFINDIA5 жыл бұрын
Have been working in this arena for a while now, you got everything correct man, other stuff you post usually goes over my head because I haven't dabbled in a lot of those things but for once, felt nice to already know what you were gonna say. Haha.
@gkcs5 жыл бұрын
Thanks! Your replies on the comments are excellent btw :D
@nadeemahmednady5 жыл бұрын
Video -> Fragmentation -> ABR -> DASH + HLS -> Packaging -> Cache On CDN -> Play
@ShivamRaj-si5wt3 жыл бұрын
1:23 AWESOME GAURAV, perfect example of what you are explaining, Huge respect bro
@shraddhapandey54422 жыл бұрын
That was a nice one ! Thanks for the video.
@vishnuthamizharasan5 жыл бұрын
To be honest learned something useful today, and willing to learn from you more like this kinda of topic!
@tirthdoshi74634 жыл бұрын
Gaurav, I can't tell how interesting this video was ! Thanks a lot ! I totally enjoyed learning this ! Keep making more such videos ! :)
@gkcs4 жыл бұрын
Thanks!
@amitjain-eth3 жыл бұрын
Nice and depth knowledge bro!
@mrskwrl5 жыл бұрын
Love the energy. Your videos are great.
@krishsbhanushali5 жыл бұрын
Can you make a video over difference between gRPC and REST architectures?
@gkcs5 жыл бұрын
I'll add this to my list, thanks!
@arunachalaramana15125 жыл бұрын
Krish Bhanushali Check this out sensedia.com/en/apis-en/apis-rest-graphql-or-grpc-who-wins-this-game
@ANKUSH2255 жыл бұрын
please add graphQL also
@aadeshsharma00012 жыл бұрын
this isp cache thing is just simply amazing,
@uneq95895 жыл бұрын
As i have some experience in this area, i would like to say that you delivered crisp content on the same. Good job!
@gkcs5 жыл бұрын
Thank you!
@ankitbagga57134 жыл бұрын
Thanks Gaurav. I am not an engineer but always wanted to get some resource to learn the concepts. I would love to see more of your videos and on advance concepts.
@gkcs4 жыл бұрын
Thanks Ankit!
@kennethpchang4 жыл бұрын
I'm very impressed! Great explanation! I just subscribed! Keep going!
@neeshespieces4 жыл бұрын
You’re awesome. Thanks 😁😍 this was so helpful
@saurabhprasad44993 жыл бұрын
Gaurav- I think what you say as cache or open connect are CDN. which are an old networking concept nothing created by google or Netflix. I would love to hear your thoughts and I am not 100% sure
@UECAshutoshKumarАй бұрын
Thank you 😊
@nicoqueijo5 жыл бұрын
The intro scared the heck outta me considering I'm watching this in a playlist and the volume levels aren't normalized.
@gkcs4 жыл бұрын
I'm sorry 😅
@pavel96524 жыл бұрын
@@gkcs Yeah, same here, do some audio compression (compressor filter) to ensure volume is roughly the same across entire video and even playlist. Great content otherwise ;-)
@sahyadrikida4 жыл бұрын
Awesome bro ..!! Simple and very informative.. loved it .. keep it up 👍
@BhageshDotIn5 жыл бұрын
Hi Gaurav, thanks for the video. Impeccable. Keep doing the great work!!
@kajalpareek82914 жыл бұрын
Very nice explained and made it interesting. Will be waiting for more good system design question.
@ayanhalder45144 жыл бұрын
Hi Gaurav, You mentioned that instead of segmenting based on timestamp, Netflix segments based on scenes that are a collection of shots. Do you have any understanding of how they divide each scene? Taking your car scene as an example: how does Netflix know from which point to which point (or to be more abstract: how many shots need to be collated) to create that scene and to download it in a single go?
@nemanja.tonic872 жыл бұрын
It's called Shot Transition Detection. Here is a starting point for researching it: en.wikipedia.org/wiki/Shot_transition_detection
@videoguy6403 жыл бұрын
That bit at the beginning was hilarious 😂
@CodeMode9313 Жыл бұрын
Paaji ek dum kamaal ka video hai ...even understoodable for non cs
@lzone244 жыл бұрын
Gaurav it would b great if you can go deeper into Netflix design and technology choices done by Netflix team. Overall a nice video 👍
@Suryayyaar3 жыл бұрын
Dont know if this has been asked earlier. 1. When Indian producers want to upload new content to Netflix, say a new Hindi movie, does it happen at the servers (outside India), get broken into chunks and get written to the Open Connect box(es)? 2. Is the content duplicated on the original servers and Open Connect boxes?
@yog29153 жыл бұрын
Bro u are great am a 14+ software engineer really appreciate ur content
@KomalSingh-bh8zr5 жыл бұрын
Thanks for this wonderful insight on the engineering side of Netflix, looking forward to more system design videos.
@gkcs5 жыл бұрын
Thanks!
@kashyap2635 жыл бұрын
Netflix subscribers : We are the coolest people living on this planet ! We watch netflix and chill Netflix Engineers : Hold my(our) Beer !
@vimalsheoran80405 жыл бұрын
Netflix is definitely does one of " the illest and the chillest" engineering out there.
@austinkim82132 жыл бұрын
Captions (in English, not sure about other languages) become unsynchronized at 9:23. Not sure if there's anything you can do about that. Great video. Very informative.
@gkcs2 жыл бұрын
Thanks for letting me know, I fixed it :D
@SA-bp5kw4 жыл бұрын
Not a programmer or anything. But I love your videos. It's interesting.
@dineshbs66353 жыл бұрын
I never knew data handling is this much complicated until I saw this video
@Theartsygalslays3 жыл бұрын
Very well explained, thank you, Gaurav!
@gkcs3 жыл бұрын
Thanks Veronica 😁
@Ramesh-he7fy Жыл бұрын
Thank you for sharing amazing content. I just have few questions here. 1) I am assuming that all the videos will be copied to all CDN (content delivery network) locations across the globe and each of these servers will have cache on top of it. 2) How OpenConnect is related to CDN in this case (or) any system design. Can you please clarify.
@RishavMishraa10 ай бұрын
OpenConnect is just like CDN. They serve the same purpose. However, OpenConnect is developed by Netflix.
@RishavMishraa10 ай бұрын
CDN simply stands for Content Delivery Network which is used to deliver the content to any ISPs. CDN in generally committed to deliver any sort of content like pictures, videos and other. OpenConnect is in house CDN build by Netflix. Netflix have installed OpenConnect appliances at ISP premises with each having copies of netflix content. This helped Netflix content to by pass multiple steps to let the content reach from CDN to ISP and finally to end user. OCA are specially desinged to deliver streaming video content and not like general CDN which are designed not specifically for Videos. Therefore, OCA is also a sort of CDN but more specifically designed by netflix to deliver streaming video content. OCA cost in terms of setting up and maintences is taken care of netflix alone. Netflix gets the advantage of better user experience as they are at the ISP premise and hence gives extreme low letancy. On the other side, ISP gets benefit of saving some bandwidth and money to access the content over network.
@akshaygagrani29273 жыл бұрын
Loved this video please create one on Google sheets also.
@syjaf66155 жыл бұрын
Awesome man! Simple and to the point. The best kind of online content.
@utkrishtpatesaria50795 жыл бұрын
Great video gaurav. Keep up. I guess open connect is a CDN, RIGHT?
@gkcs5 жыл бұрын
I've to read up on this. Will let you know 🙂
@siteshp5 жыл бұрын
I too have the same question. @Gaurav
@utkrishtpatesaria50795 жыл бұрын
Just read from one of your provided links it's a CDN!
@jaikishanchudasama85794 жыл бұрын
Awsome Video Just a question. Is the chunking and encoding happing in real-time as the user calls for a movie or is the pre-processed and then sent to the user as they watch the content ?
@gkcs4 жыл бұрын
It's preprocessed.
@logicboard77462 жыл бұрын
Thank you for your reading on this topic...this is enlightening (at least for me)
@djlyons902 жыл бұрын
This was a very informative video! Awesome job.
@KejriwalBhakt2 жыл бұрын
How is open connect different from CDN? CDN also stores static data and helps in reducing the request load onto the mother server. Moreover, if GOT is on UK's "Open Connect" does the mother server routes our request to the UK one? Or do we bypass the mother server? Because we often tend to watch series that are not local.
@yashgandhi96985 жыл бұрын
I was the first one to watch this video after him! The content had no views but a like!!
@Lokesh_Karki5 жыл бұрын
That's a improper system design for KZbin, probably slow.
@toabhijeetsingh4 жыл бұрын
The content of this video was very dense. The breather at 5:29 was very much wanted :-). You have very good audience engaging skills. Good Luck !!
@sumankumarsubudhi5 жыл бұрын
Whoa!!! Thank you so much for making such unique and great content videos ;)
@PyjamaLama5 жыл бұрын
Wow this is sweet! Super smart solution to the issues of video streaming, will be interesting to see where it is improved upon in the future too!
@itzikkasovitch20812 жыл бұрын
Thanks a lot for this series. I find it very helpful. One thing that comes to my mind with these OpenConnect boxes (and CDN) is how they are handling Digital Rights Management for content that is not on their servers. Do you happen to know?
@vyshnavramesh930511 ай бұрын
Open connect is built by Netflix, hence their server
@amitupadhyay65112 жыл бұрын
Not gonna lie, you got me in first second, sorting in O(n) lol
@manjunath27285 жыл бұрын
Hi Gaurav Thanks for awesome video. What are the technologies Netflix uses to display the videos?.
@sudeepsabnavis5 жыл бұрын
I guess Netflix also use AWS Edge location as well to cache the S3 content and serve local content as well.
@Divinity19935 жыл бұрын
Yes you are correct .
@mrinalinimusic5 жыл бұрын
Your videos are pure delight to watch !
@gkcs5 жыл бұрын
Thank you!
@ramsinghization4 жыл бұрын
Let me get this straight ,the chunk theory is only applicable when we play a video, right ? or does it happen while we are not playing as well. For example - if there's an old video of 6 GB and now processing the same video requires only 1 GB. So, netflix does that while we are actually playing that old video or it's processed in the night (supposedly) and permanently changes and put it in the Amazon S3 ?
@gkcs4 жыл бұрын
The chunks are made offline. The cache population is done at low-traffic times. Watch the video again for more clarity.
@heysupratim4 жыл бұрын
Great video. Something I would like to point out. AVI MP4 - these are video containers. H.264 is a codec. Not a big thing to worry about in the grand scheme of a system design overview video like this but just wanted to point out
@gkcs4 жыл бұрын
Thanks! That's a good point 😁
@mennagamea4634 Жыл бұрын
thanks for the video, amazin but I have question u mentioned that each chunk is having one format one resolution, I didn't get it so one movie will have multiple formats for each part? where is the consistency for the user here? :/
@gkcs Жыл бұрын
A user watches only one format in one device. Their player gets consistent format feed.
@scenescentral30042 жыл бұрын
Fantastic explanation
@anjalibelani51014 жыл бұрын
This is great work Gaurav. Thank you for this!
@gkcs4 жыл бұрын
😁
@vinitmundra19205 жыл бұрын
Can u suggest the best book for understanding and also learning System Design questions, which might also help in interviews Pls am in a great need for it....pls
@ganeshaditya30424 жыл бұрын
Designing data intenstive applications
@imshafay5 жыл бұрын
Openconnect ---> UPFRONT (AWS) so basically s3 is storing the smaller chunks and they are being consumed using AWS UPfront to get them without lag. I basically, developed this architecture for my video optimizaiton algorithm :)
@pulkitpriyam87494 жыл бұрын
Do these open connects can be considered as CDNs or they are different totally?
@manirajsivasubbu46234 жыл бұрын
Nice explaination, Thank you so much.
@B-Billy5 жыл бұрын
Gourav, thank you. Can you please make a video swiggy (example) payments and it handles different response like success, failed, or pending.
@swagatpatra21394 жыл бұрын
If we break into so many slices, won't there be extra overhead to keep rack of all individual slices? And we are sending them to different processors for processing? What if chunk2 is processed faster than chunk1? And regarding cache, will the ISPs do the mapping for each individual cache? Won't that increase the look up table size exponentially?
@gkcs4 жыл бұрын
1) Yes, there will be an overhead of keeping track. The gains of chunking outweigh the overhead though. 2) This is addressed in the video already. 3) Doesn't matter, since it's happening in the background, and the chunks require consolidation after processing anyway. 4 and 5) You question isn't clear. Please read the links in the description.
@shivnandantiwari74894 жыл бұрын
You're a gem you should have a teaching startup like byjus
@marchanselthomas3 жыл бұрын
For some reason, the sparse movies that I've watched were also A-rated.
@anirbanchatterjee77663 жыл бұрын
Legends understood what you mean.
@sabihaali79624 жыл бұрын
Hi Gaurav, amazing video 👏🏽👏🏽 Wanted to know who does the caching the isp or cloud front for s3 Also these different formats and resolutions , are they already done and stored in s3 or are they transcoded using a function in the cache area. Pls clarify. I can’t begin tell you how amazing and impressive your videos are Would really appreciate some beginner level containers video
@gkcs4 жыл бұрын
The ISP has a deal in which they take a box from Netflix which stores most of their 'current' movies. Updating the cache is done by Netflix. They are done and stored to avoid compute during run time. I have something on containers in the works :)
@nosouponhead3 жыл бұрын
Upvote for that t-shirt.
@kashyapsreview3 жыл бұрын
Thanks for the great info I wonder why I like Netflix more than any other OTT
@tiwaripranav32 Жыл бұрын
There are lot many more things happen. There can be more than one type of Caching - Amazon call it Edge servers or Edge computing. And there is CDN - natively Amazon has it but there are Akamai and CloudFliair of the world who specialise in CDN. There is proximity calculation by means of DNS and weightage is given to connection coming from different places. And you seems to have taken too much of ISP - it is called DNS which keeps a hostname Vs IP mapping (this is also quite complex as the name resolution is carried out by DNS server once a request is issued from users' machine.
@polavenki4 жыл бұрын
Netflix open connect caching technique is like their home ground CDN approach? Was wondering how was it different from traditional CDN solutions?
@anjarhusain9215 жыл бұрын
I found this video very interesting; Netflix architecture fascinates me a lot. The detailed explanation is very well put, but there is sth about the video quality that you should have fixed properly. Take the blurr at 1:21 and some disorder at 6:55 - 7:10 for example.
@gkcs5 жыл бұрын
Thanks for pointing this out. The 1:21 blur was on purpose to show what happens with reduced quality. But the 6:55 one has been introduced by KZbin. I'll file a report on this. Thanks again 😁
@shoaibzafar56632 жыл бұрын
Outstanding 😨😱
@luis96xd3 жыл бұрын
Excellent video, well explained!
@lallu123435 жыл бұрын
Hello Gaurav, can you tell me how caching at the ISP level different from CDN / Amazon Cloudfront ?
@shubham2775 жыл бұрын
I think a content delivery network like Amazon CloudFront is a similar kind of concept. It would be great to hear from Gaurav about how open connect is different from Amazon CloudFront.
@perfectlyfantastic5 жыл бұрын
Arent they different , i mean in case of CDN like Amazon Cloudfront you need to go the aws or any server you are using , hence one need to hop to server and check the cache , in case of ISP its more direct need not go to the server at all , shifting the problem i see it like reflex action , nervous system(spinal cord) providing some response rather than request going to brain(in biology terms) in short its faster than CloudFront