Google Drive System Design | Dropbox System Design | File Sharing Service System Design

  Рет қаралды 43,696

Think Software

Think Software

Күн бұрын

Dropbox System Design video discusses the high-level system design of a file sharing service like Dropbox or Google Drive.
For more details on the design of file sharing services like Dropbox or Google Drive, check the chapter on the Dropbox System Design in Distributed System Design Interviews Bible | Best online resource for System Design Interview Preparation. Please visit www.thinksoftwarelearning.com?KZfaq-dropbox .
In this video, you will find following:
00:00 Introduction
01:28 Functional Requirements for Dropbox System Design
06:30 Non-Functional Requirements for Dropbox System Design
07:50 Discussion on ACID Requirements for Dropbox System Design
14:45 APIs Specification
17:05 What is Dropbox Namespace
19:00 High-Level System Design of Dropbox Service
26:50 Final Remarks
Please follow me on / think.software.community if you like to get notified about new course chapters getting added or when we will start another round of mock interviews and you want to participate in mock interviews or any other updates. I will also take your suggestions there about the course and the channel.
Check out our following articles:
- How to Ace Object-Oriented Design Interviews: / how-to-ace-object-orie...
- Elevator System Design - A tricky technical interview question: / elevator-system-design...
- System Design of URL Shortening Service like TinyURL: / tinyurl-design-from-th...
- File Sharing Service Like Dropbox Or Google Drive - How To Tackle System Design Interview: / how-to-tackle-system-d...
- Design Twitter - Microservices Architecture of Twitter Service: / design-twitter-microse...
- How to Effectively Use Mock Interviews to Prepare for FAANG Software Engineering Interviews: / how-to-effectively-use...
- Robinhood Backend System Design - How to receive realtime stock updates: / robinhood-backend-syst...
- Payment Gateway System Design - How does the Stripe work: / payment-gateway-system...
- Selecting the best database for your service: / selecting-the-best-dat...
#SystemDesign #DistributedSystems #FAANG #Facebook #Google #Amazon #Apple #Microsoft #Uber #Netflix #Oracle #Lyft #Interview #ComputerProgramming

Пікірлер: 91
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Please let me know in the comments if you find the video useful and please do like the video. It helps the channel a lot. Also if you want to know how Dropbox should be designed based on the requirements discussed in this video, check: Distributed System Design Interviews Bible | Best online resource for System Design Interview Preparation is now online. Please visit: www.thinksoftwarelearning.com? Please follow me on facebook.com/Think.Software.Community if you like to get notified about new course chapters getting added or any other updates. I will also take your suggestions there about the course and the channel.
@AzharulIslamParvez
@AzharulIslamParvez 3 жыл бұрын
This is the most in-depth video that covers so many avenues for this particular problem. No other video touches this many different aspects and cases. Well done!
@varadghodake495
@varadghodake495 Жыл бұрын
This is the best video on this topic anywhere. I like that you went in-depth explaining the requirements and what they actually mean. Other instructors and blogs just give an overview. This is good content. Thanks!
@ThinkSoftware
@ThinkSoftware Жыл бұрын
You are welcome :)
@cobainsick
@cobainsick 3 жыл бұрын
Very well explained! Thank you!
@jinglong383
@jinglong383 3 жыл бұрын
great video! one of the most clear I've ever seen.
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@rajendragosavi2233
@rajendragosavi2233 2 жыл бұрын
Thank so much for such in depth analysis. It will help us getting better at our daily jobs as well :) Cheers. More power to you.
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
Glad it was helpful!
@gautamtyagi8846
@gautamtyagi8846 3 жыл бұрын
really very well explained! easy to grasp. thanks a lot!
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@vipulraj3351
@vipulraj3351 2 жыл бұрын
Thank you sir for this informative vide. I have a question. Lets say I have a text file in my drive and I downloaded it, made some changes in it and then uploaded the file again. The file is then uploaded as a new file in my drive. Does that align with the concept of uploading only the updated chunk of a file? If yes, how does the service determine that the file i am uploading is an updated version of an existing file on the drive (since I downloaded that file from drive itself and made changes in it). Please provide your thoughts on this concern. Thanks in advance :)
@gurjarc1
@gurjarc1 2 жыл бұрын
one question . When you say we can update only changed segments or chunks. Lets say we had a pdf file, a binary file and we modify the pdf file which creates a new binary file. how do we calculate the chunk which has changed and how do we receive it and merge it. The position of the chunk and its offset might make it difficult to track and update only that chunk.
@ravisemwal5363
@ravisemwal5363 8 ай бұрын
Really useful video Arsalan. Thanks for contributing back to the community. In the HLD, I have a perspective that the synchronization service shouldn't talk directly to block service, since block service and object storage are broadly the members of the same 'Storage' module. Ideally, the calls should be routed through Object Storage which should then perform operations as needed. This will allow storage nuances to be handled at a single place. Would love to know your perspective on this.
@OlegGoritsyn
@OlegGoritsyn 3 жыл бұрын
Thanks for the explanation, it's really helpful
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
You are welcome!
@KapilSharma-zv5oo
@KapilSharma-zv5oo 3 жыл бұрын
Your system design videos have been very very useful and I have learned a lot from them. Could you please do a video on "Designing a code build & deployment system". It's a very popular question these days for SWE-Infrastructure roles. Or maybe add it in your paid course :-)
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂. I will look into this.
@nikhiltripathi3545
@nikhiltripathi3545 3 жыл бұрын
Awesome stuff!
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@prernagolani9014
@prernagolani9014 3 жыл бұрын
this channel is underrated, awesome videos ,
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@ashishranjan8048
@ashishranjan8048 3 жыл бұрын
I have really learnt a lot from your videos
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@jeejon9107
@jeejon9107 3 жыл бұрын
Really useful. I am waiting for you to add more design in your online course before buying it. Also I requested in the past about globally distributed dbs - not all content in every region. Thanks
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂. That is why right now I am providing course as unlimited access so that if you buy now you will still get future updates. After few more chapters, I will switch to yearly subscription model for the new buyers. Old/existing buyers will still have unlimited access. What about globally distributed dbs, I didn't get what you are asking? Having different chapters available in different regions?
@kc8478
@kc8478 2 жыл бұрын
Thanks for the video. There is no API for creating root folder in user's storage account. How user root folder will be created in his cloud storage without having a API CreateRootFolder? Please share ur idea ?
@ainchishty4089
@ainchishty4089 3 жыл бұрын
very well explained, great video.
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@tylercondon3453
@tylercondon3453 2 жыл бұрын
Very informative !
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
Thanks for the comment 🙂
@ArpanPathak
@ArpanPathak 3 жыл бұрын
Really underrated channel.
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks 🙂 for the comment
@966makiaveli2
@966makiaveli2 3 жыл бұрын
Great tutorial 👍🏾
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks
@pallavichaudhary6636
@pallavichaudhary6636 5 ай бұрын
@ThinkSoftware, Thank you Sir for this informative content. As you suggested to opt for your course for detailed analysis, I went through the course material. It's a text course and I thought/expected it's a video course. If possible, please make it a video course.
@saeeduchiha5537
@saeeduchiha5537 Жыл бұрын
Chunk size has more to do with file size and the non-functional requirements like throughput, bandwidth and latency.. set by business requirements. The smaller the chunk the smaller bandwidth and higher throughput and latency.
@ThinkSoftware
@ThinkSoftware Жыл бұрын
Thanks for the comment
@kamalsmusic
@kamalsmusic 2 жыл бұрын
For the atomic file operation, is the temporary file you are mentioning like a copy of the original file or is it a blank file? I assume it has to be a copy if we are using a rename right?
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
It is the file with new changes that are applied to the temp file first before renaming the temp to replace original.
@adithyapuram2541
@adithyapuram2541 3 жыл бұрын
Chunk size thoughts, first of all thanks for all your videos. A really small chunk size could lead to a lot of meta information that needs to be stored for each file. A really large chunk size could lead to problems with maintaining patches (if we are maintaining patches and versions like fit). A really large size could also inhibit parallel processing of the file, since threads would be consumed for a longer period of time. There probably is some network/bandwidth component associated with choosing the right size as well. I am just throwing the kitchen sink at it.. Not sure if I made any sense. Please comment on what you think and kindly provide the right way of judging the block size.
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment. Yes you are thinking in right direction.
@nakulkumar4197
@nakulkumar4197 3 жыл бұрын
I was also thinking the same but I stuck at a point. If we are considering client's bandwidth and if it is x at the time client tried uploading and changed to y when half of the chunks are already uploaded i.e., it is fluctuating. Also if he tries to update file after some time and bandwidth gets reduced. Should we further chunk the chunk he's already updating.
@nimageofmine
@nimageofmine 3 жыл бұрын
ty for uploading this. the requirements are super thorough and was wondering if you would expect this level of coverage in the design interview.
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
It depends on the level you are interviewing for.
@nimageofmine
@nimageofmine 3 жыл бұрын
@@ThinkSoftware hmm, what would you expect from a Senior SDM or a director?
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
The senior SDM/director need to be thorough and should be able to convert vague requirements into something meaningful.
@Clara-ut4ll
@Clara-ut4ll 2 жыл бұрын
Can you explain the API flow on the client side? When the user clicks "upload", does the application first handle the chunking and indexing before making the API request? so then would the API be sending chunks of files? /api/chunks/:chunk_id
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
this is discussed in the course
@YashRaithatha1989
@YashRaithatha1989 3 жыл бұрын
The chunk size should be decided based on some formula which takes below factors into consideration 1. Total Size of file ( it would be wrong design to create small chunks ( for e.g 4KB size) for a file with size 10 GB ). In the formula, we will have a limit on the maximum number of chunks that we can create for a file. 2. The file type ( for e.g. a document file will be very small compared to a video file and will have more updates compared to a video file. So it makes more sense to keep higher chunk size for video file and a smaller chunk size for a document file. ) To resolve the file conflicts we can use the same mechanism that we use in source control system like GIT to figure out of if the changes can be merged without conflicts or not
@user-oy4kf5wr8l
@user-oy4kf5wr8l 3 жыл бұрын
buddy u r very strong
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@saeeduchiha5537
@saeeduchiha5537 Жыл бұрын
Totally disagree. Chunk size has more to do with file size and required throughput and bandwidth set by business requirements.
@user-oy4kf5wr8l
@user-oy4kf5wr8l 3 жыл бұрын
I was never convinced by any KZfaqr except YOU. The quality is just outstanding! I am very willing to buy your course. One question plz, i always heard that nosql is faster for distributed, cuz it doesnt need to do joining etc. So why you kept using sql ?
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment. In my videos, I am discussing the schema but it does not mean that it is only applicable to sql. Also in the future I will make a video discussing the comparison of sql vs nosql.
@nammi895
@nammi895 2 жыл бұрын
@@ThinkSoftware almost 5 months did u upload the video for sql vs nosql comparison. Is there a paid course by you, I'm willing to buy
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
Thanks for the comment. Yes, I was very busy in my job to get time to work on the videos. My 2022 resolution is to make more videos. There is a course out as well that you can check. It is still incomplete but I still think that it is at a stage that you will find it very useful. The link is in the description.
@ravindrabhatt
@ravindrabhatt 2 жыл бұрын
So the replication consistency here is replicating to another standby DB?
@rayvinay
@rayvinay 3 жыл бұрын
Good work
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@yuganderkrishansingh3733
@yuganderkrishansingh3733 Жыл бұрын
Isn't instrumentation like metrics and security considered non-functional requirements?
@Gaurav569SinghOfficial
@Gaurav569SinghOfficial 3 жыл бұрын
Great
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks
@aayushdhir7295
@aayushdhir7295 3 жыл бұрын
I recently came across this channel and soon enough went through almost all the videos. Although I liked all other videos so far, Im not sure if this video was helpful as most of the stuff is still kept under blackbox and details are missing. It looks more like an advertisement to the your course than a system design video
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the feedback. As you can see not everything can be covered in a KZfaq video and the video was already around 30 min long. That is I was only able to discuss the design at high level only. The details of course can be found in the course. But based on just the video you should be able to come up with right set of requirements and the overall design. Of course if the interviewer goes into detail then you do need the knowledge that is covered in the course.
@stiffyBlicky
@stiffyBlicky 2 жыл бұрын
When it comes to non-functional requirements. I feel like most of the architectures that are asked in system design interviews almost always need to be scalable, highly available, and fault tolerant. Do you agree or can you think of situations where these might be able to be relaxed?
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
Thanks for the comment 🙂. Yes if you have seen my videos you would have known by now that there are 4 non-functional requirements that are always there for a distributed system and then there could be others that need to be there but can become more important for some systems.
@uditagrawal6603
@uditagrawal6603 3 жыл бұрын
Seems like the atomicity and consistency are very closely related in ACID ,didn't find much of difference. Could you please clarify on this?
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
In a very brief manner, atomicity is all or nothing. Consistency is moving a state from one consistent state to another.
@jyotheeswarareddyjerrimadu4183
@jyotheeswarareddyjerrimadu4183 3 жыл бұрын
If we find everything in your course, why should we watch this video? Please mention it as a trailer video so that we understand it accordingly. Please....🙏🙏
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment. Although I discuss some stuff in greater detail in the course, not everyone buys the course and so I want my audience on KZfaq to still have sufficient information (if not all/detailed).
@manikmahajan9254
@manikmahajan9254 2 жыл бұрын
On cellular networks , chunk size should be small as failed will be retried and cost data , on wifi it should be as big , larger the chunk , larger the rework on failure of the chunk.
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
Thanks for the comment
@nomnom8692
@nomnom8692 2 жыл бұрын
I couldn't understand much what the indexer was supposed to be, could you clarify a bit for me? Awesome video tho!
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
This is discussed in the course. In short, indexer is maintaining an index of all the folders and files within designated root folder.
@akash1928374655
@akash1928374655 3 жыл бұрын
I would say the optimal way to decide the chunk soze will have 3 factors, first the type of storage it is being stored upon. If the minimum partitioning of the storage is x bits , so if we have x bits of chunks it will have least amount of compaction and defragmentation. Second would be the smaller the size easier to send over network and incase of failure will be easier to resend and have checksum calculated for corruption of file. Just like p2p torrent. 3rd would be the more number of files, it becomes difficult to manage. Read will be slower but, we only read from a fully formed file rather than partial chunks so not much a difference. Please let me know what you think about my ideas.
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment. You are thinking in the right direction.
@rabindrapatra7151
@rabindrapatra7151 Жыл бұрын
requirement 5 is like rbac
@rabindrapatra7151
@rabindrapatra7151 Жыл бұрын
google docs operational transformer
@umkatakam
@umkatakam 3 жыл бұрын
Good video. Well structured and easy to follow. Thanks for putting this together. One feedback would be to use gender neutral pronouns like "they" :). User is not always "he".
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment 🙂
@Music_Fitness
@Music_Fitness 2 жыл бұрын
side comment outside of topic of video: A user can also be a she not necessarily on he. Throughout video user is referred as he. Please ensure you ensure using gender neutral personas. Thanks for creating this video though and helping everyone learn designing.
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
thanks for the comment
@sonicjetson6253
@sonicjetson6253 2 жыл бұрын
You just copied the design from System design book. Groks king author.
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
Thanks for the comment. I think you haven't read my book/course and that is why commenting this.
@faizankhaliq2010
@faizankhaliq2010 3 жыл бұрын
I was majorly put off by you mentioning "find it in the course" zillion times, I mean if you have explained it end to end only in your course, why bother creating a free half cooked video on youtube ? Disappointing!!
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks fot the comment. Please understand not everything can be covered in the 30 min video and also not everyone buys the course so I am creating this video for those who can't buy the course and providing them some useful information. Creating a 30 min video requires days of research plus multiple hours of video recording and editing.
@rohitsingh-ym9ns
@rohitsingh-ym9ns 3 жыл бұрын
Where is the API for downloadFile? More, What is the point of watching this video if everything has been explained in your previous videos? Not much focus has been given on what actual Database should be used to store the file, How the streaming of data is done, How the cryptography is applied. Better take a real-time example like an Image upload or a video upload from user's phone or from the Website and what actual APIs would take part in this use case. And again nothing has been mentioned about downloading the file which is the key feature for any cloud storage system.Time and again you just keep mentioning the online resources are lacking this and that, Better improve your content rather than complaining it feels like you just want user to just watch your previous videos.
@ThinkSoftware
@ThinkSoftware 3 жыл бұрын
Thanks for the comment.
@fakrulislam3140
@fakrulislam3140 2 жыл бұрын
Talks unnecessary things too much
@ThinkSoftware
@ThinkSoftware 2 жыл бұрын
it depends ...
Русалка
01:00
История одного вокалиста
Рет қаралды 5 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 100 МЛН
System Design Interview: Design Dropbox or Google Drive w/ a Ex-Meta Staff Engineer
58:08
Hello Interview - Tech Interview Preparation
Рет қаралды 27 М.