How a CDN Works | System Design
5:14
Пікірлер
@hareshparab7808
@hareshparab7808 5 күн бұрын
Do we have any Paid Data Structure and Algo Course ?
@kaelans2179
@kaelans2179 6 күн бұрын
why not take advice from the others and redo the video on the kafka part
@be051268
@be051268 7 күн бұрын
i didn;t get whats purpose of this video, cloud already fault tolerant , whenever i am designing something i assume its on cloud with two region. Other videos are nice , but sorry for this
@v.demchenko
@v.demchenko 8 күн бұрын
Is it possible to just explain it in really simple way? After 6 minutes I still doesn't understand about what are you talking about. For the what reason you give this examples for SQL scaling problems for the whole video??? Redicilous...
@rafaelferreira2394
@rafaelferreira2394 12 күн бұрын
Wrong information... Remove the video and make another one after study more about the technology
@someshpatel7660
@someshpatel7660 14 күн бұрын
Its always nice to see visuals. Thanks mate. Keep up the good work :)
@raychang6443
@raychang6443 16 күн бұрын
Thank you for the insightful video. However, there are a few things I am confused about. Any advice would be greatly appreciated: 1. Why do we need a WebSocket for Twitter? What are the benefits over SSE? We might encounter several related issues, such as how to handle recovery from a crashed server if we choose WebSocket, right? 2. How do you handle pub/sub with Kafka for hundreds of millions of users? Is your Kafka topic based on user_id? It seems like a giant chat room with all the users?
@RaviGILL-s1f
@RaviGILL-s1f 18 күн бұрын
This is high level Design for my brain 🧠
@24DesiBinodon
@24DesiBinodon 19 күн бұрын
Can you help to make an app like this, please contact
@mr-black_rock321
@mr-black_rock321 25 күн бұрын
if topic A have 2 partition and 3 consumer in consumer group then 1 of consumer should wait and ask to leader to join the group
@mr-black_rock321
@mr-black_rock321 25 күн бұрын
If topic A have 3 partition and consumer group have 3 consumer then 1 partion = 1 consumer if topic A have 4 partition and consumer group have 3 consumer then one of the consumer read from 2 partition and other 1=1 if topic A have 3 partition and we have 2 group of 3 consumers then each consumer of every group read from 1=1
@mineline5620
@mineline5620 25 күн бұрын
dude this laser pointer is giving me flashbacks from school lmao
@taiwojolomi
@taiwojolomi 27 күн бұрын
I understand so little yet it was so interesting to see how networking problems were circumvented
@truongkimson
@truongkimson 29 күн бұрын
This video feels like it's written by ChatGPT. Some serious hallucination going on here
@rrituism
@rrituism Ай бұрын
This is not so good.. No concept of Inverse index. Poor way of description. This is not web crawler
@MitaliNeerPatel
@MitaliNeerPatel Ай бұрын
Why do you need blob store in first place. I just can't understand this part. Storing those web-pages isn't your job. You just need to count frequencies, Summaries of each pages. etc etc. To check, if the web-page is changed from your last visit, you can do checksum based optimisation,,, for each section of the webpage, create checksum, also, create checksum of entire page. This way, u can reduce memory usage on blob store.
@michaelmaloy6378
@michaelmaloy6378 Ай бұрын
I hope this channel grows exponentially. This is amazing content! Thank you, and well done! :)
@work_lpag-t7i
@work_lpag-t7i Ай бұрын
I love this video. It's informative and really well made. I also love to read the comments on these videos as, no matter how good your architecture is, there is always something to improve. Looking forward to see an update on this (especially regarding the data extraction process). But once again. This is awesome content. Keep going :) :)
@SuperGojeto
@SuperGojeto Ай бұрын
Though this video is good but it seems to be too simple and also shallow. I came here after watching your google search system design which seemed more complete. If possible please create an updated video with more details and precision.
@SuperGojeto
@SuperGojeto Ай бұрын
I was having a feeling that I would have to crawl the youtube videos for a quality video on Google System design! But BRAVO! I find this video as the first video with the highest views. Great job!
@cool-aquarian
@cool-aquarian Ай бұрын
I am fanning out after watching this video 😊
@antonzhylenko2132
@antonzhylenko2132 Ай бұрын
"Jupiter" name gives off final boss vibes
@bernardoquaresma1123
@bernardoquaresma1123 Ай бұрын
Excellent explanation and clear language! I'm starting out in Python and wanted to challenge myself. Thank you for the lesson!
@nahtanpng9589
@nahtanpng9589 Ай бұрын
awesome video dude!
@sanchitbatra4431
@sanchitbatra4431 Ай бұрын
RabbitMQ is push based model , consumer does not poll , rabbitMq tries to push as soon as it gets the message
@NimeshKumar2989
@NimeshKumar2989 Ай бұрын
what is the software used here to create presentations and interact with Apple Pencil?
@VarunArora14
@VarunArora14 Ай бұрын
Love your channel mate. Very helpful for interview prep
@MuhammadIlyas-dr7eg
@MuhammadIlyas-dr7eg Ай бұрын
First view 😀
@YoungChiao
@YoungChiao Ай бұрын
they got cooked on the Tyson fight
@jpmc1312
@jpmc1312 Ай бұрын
Here because of the Tyson fight as well - one provider in my area (Bell) had bad Netflix, one provider (Rogers) had good Netflix. Presumably something to do with how they're connected into the Netflix CDN...?
@ChoocoPunch
@ChoocoPunch Ай бұрын
Can I ask what should a NoSQL database table schema look like? Should it looks like 0:05 ?
@surenderthakran6622
@surenderthakran6622 Ай бұрын
You say consumers when you should be saying consumer groups when talking about Kafka fanout. Otherwise a nice explanation
@pradeepbhat1363
@pradeepbhat1363 Ай бұрын
Great content. It is not clear how to fetch the user's tweet when the key is slowflake id and it is distributed over multiple nodes ?
@h.l.a.ondoua8514
@h.l.a.ondoua8514 Ай бұрын
What about emqtt
@deddallama
@deddallama Ай бұрын
Why not Use CDC?
@vaishnavpureddiwar3091
@vaishnavpureddiwar3091 2 ай бұрын
really nice :), thanks
@pingqiu7318
@pingqiu7318 2 ай бұрын
Very good video! Thanks for sharing! One tiny thing, I would prefer NFS over Blob Store like S3 to keep the downloaded pages. A webpage will keep references to lots of resources, like json/css/javascript files. The bold/highlighted words are more important than plain text. That's very important information for ranking. If we don't keep the css files, those information will be lost. So we need to keep them together with the HTML file. It will be very complex to keep those information for multiple files in a single webpage in metadata if we use S3. So I suggest just download the web page with everything to a folder in NFS, and ask indexer to help themselves.
@optimusdebugger9638
@optimusdebugger9638 2 ай бұрын
nitpick. We lost quantity when we went from model to table on order_product table
@ryan.aquino
@ryan.aquino 2 ай бұрын
I'm still quite confused on why we prefer queue + Flink (stream processing) instead of just ingesting data directly from sources using spark.
@geekwithme9449
@geekwithme9449 Ай бұрын
spark is not a tool for streaming data. Using Flink enables you to do real-time data ingestion along with the transformations. It is mostly used in fraud and anomaly detection usecases.
@saiyijinprince
@saiyijinprince 2 ай бұрын
I think you missed a huge aspect about when you to choose between SQL vs NoSQL. At the end of the day, its more about picking the right tool for the job, and less about the scale of the data. If you need ACID transactions, use SQL. If you're okay with eventual consistency then NoSQL might be easier. The scale of your data is just one minor aspect you need to consider when building a system. I'd argue you can scale both types of DBs just as much as each other but it'll all come down to what kind of trade offs you're willing to make. Its not uncommon to have a combination of both NoSQL and SQL DBs, they are not mutually exclusive.
@arbazadam3407
@arbazadam3407 2 ай бұрын
I have faced issues while accessing data in nosql databases. 🥲
@ibrahimkoz1983
@ibrahimkoz1983 2 ай бұрын
Postgresql offers the same power as MongoDB when it comes to json, so there's no sense to choose MongoDB even if you want to store your data in denormalized form.
@ibrahimkoz1983
@ibrahimkoz1983 2 ай бұрын
@codingwithjamal nope. Postgres stores json as jsonb and it is blazingly fast.
@interviewpen
@interviewpen Ай бұрын
From my understanding, postgres doesn’t have the same ability to select or filter on json fields. But regardless, using a solution that was designed from the ground up for this use case will generally result in a better experience. Thanks for the insight!
@sharmanihal
@sharmanihal Ай бұрын
@@interviewpen Postgres can quite nicely filter/search/index the json fields; however, this only does not make it an ideal candidate to choose over MongoDB.
@soumenmondal7294
@soumenmondal7294 2 ай бұрын
hi @interviewpen , it's diwali can i get one coupon code so that i can buy your sytem design course, it's diwali , love from india
@vivekgujari9118
@vivekgujari9118 2 ай бұрын
I have a question. Everytime when a user logs in, the system will generate a session token regardless of if it is a good user or a bad user. How this session token differentiates between the good and bad user?
@interviewpen
@interviewpen Ай бұрын
When we log in, our authentication system has to verify the user’s credentials and generate a session token. If the user doesn’t have the right credentials, the system will reject the user and will not generate a token. Hope that helps!
@Fikusiklol
@Fikusiklol 2 ай бұрын
Good stuff! However, what is also important apart from schema, that relational database has relatively slow writes/updates because of their index structure (B-tree) and storage mechanisms. Apache Cassandra, afaik, has LSM tree and mem tables. MongoDB has async I/O journaling and also has LSM tree (or does it?) in addition to B-tree. I, personally, dont like any relational DB, but "right tool for the right job" :)
@charliebitmyfinger7124
@charliebitmyfinger7124 2 ай бұрын
Relational databases are also acid compliant and are by far the most reliable types of databases.
@Fikusiklol
@Fikusiklol 2 ай бұрын
@@charliebitmyfinger7124 NoSQL database are also acid compliant. It depends on what guarantees they provide, as every engine provides different guarantees.
@interviewpen
@interviewpen 2 ай бұрын
Really great insights, thanks!
@nandans2506
@nandans2506 17 күн бұрын
Relational is more often than not the right tool for the job in hand. Use cases for nosql are very narrow in real world applications. It's good if you know your exact requirements and it fits the purpose. Most under development projects don't know exact requirements and they change with time, nosql will bite you for eternity
@ehm-wg8pd
@ehm-wg8pd 2 ай бұрын
this is gold
@interviewpen
@interviewpen 2 ай бұрын
Thanks for watching!
@goldenlin9528
@goldenlin9528 2 ай бұрын
do most large scale companies use nosql then in favor of ease of storing and accessing data?
@interviewpen
@interviewpen 2 ай бұрын
Yep--companies that need to query massive amounts of transactional data typically use NoSQL databases for flexibility when distributing data across a large cluster.
@professionalsd9647
@professionalsd9647 2 ай бұрын
I'm i missing something or he didn't design the model in nosql ?
@ssefrhd
@ssefrhd 2 ай бұрын
Exactly my thought as well..
@interviewpen
@interviewpen 2 ай бұрын
The schema shown is just an example to show the limitations of the relational model. Point is, NoSQL databases allow us to design around query patterns. The same logical data could result in very different schemas depending on the requirements or which database we choose. If you want to learn about non-relational schema design, you might want to look at our course on interviewpen.com :)
@mindrust203
@mindrust203 2 ай бұрын
@@interviewpen True, but I think I speak for most of us when I say we were expecting to see how you would design the NoSQL data model to solve the issues you mentioned, with regards to querying products in an order and getting the number of times a product appears across all orders.
@KENTOSI
@KENTOSI 2 ай бұрын
Hey nice video, but I'm confused about 1 thing: You mentioned that the CDNs are caches themselves, but then we're adding an additional cache layer? This seems redundant, no? Even if you go with the requirement of leaving NY data close to NY users, why can't you can still implement this algorithm at the CDN level?
@interviewpen
@interviewpen 2 ай бұрын
The CDN hosts static content such as images, but we can’t cache an api like that-the data is dynamic. So we still need an API, but caching this dynamic data will lower latency. Thanks for watching!
@KENTOSI
@KENTOSI 2 ай бұрын
@@interviewpen Got it thanks for explaining.
@四伊柳
@四伊柳 2 ай бұрын
Amazing video, thanks a lot ❤
@interviewpen
@interviewpen 2 ай бұрын
Thanks for watching!
@smaug9833
@smaug9833 2 ай бұрын
Great video! Would like to have seen NATs included in the comparison.