0
0
HLDsystem_design~3 mins

Why Distributed file systems in HLD? - Purpose & Use Cases

Choose your learning style9 modes available
The Big Idea

What if your files could live everywhere at once, safe and ready for everyone to use?

The Scenario

Imagine you have a huge photo album stored on one computer. Now, you want to share it with your friends who live far away, and everyone wants to add their photos too. You try to send files back and forth manually, but it quickly becomes a mess.

The Problem

Manually sharing files means copying and sending them one by one. It is slow, confusing, and easy to lose or overwrite photos. If the computer storing the album breaks, all photos might be lost. Also, many friends cannot work on the album at the same time without causing conflicts.

The Solution

Distributed file systems solve this by spreading the files across many computers that work together. They keep copies safe, let many people add or change files at once, and make sure everyone sees the latest version without confusion.

Before vs After
Before
copy file1 to friendA
copy file2 to friendB
wait for updates
merge changes manually
After
mount distributed_fs
save photo.jpg
all friends access and update instantly
What It Enables

Distributed file systems make it easy and safe for many users to store, share, and update huge amounts of data together, no matter where they are.

Real Life Example

Cloud storage services like Google Drive or Dropbox use distributed file systems so millions of users can save and share files seamlessly across the world.

Key Takeaways

Manual file sharing is slow and risky for big or shared data.

Distributed file systems spread data across many machines for safety and speed.

They allow many users to work together smoothly on the same files.