← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Design a distributed file system with strong consistency for file listings.
Requirements:
mkdir(path) - Create directoryls(path) - List contents (strongly consistent)put(path, file) - Upload fileget(path) - Download filedelete(path) - Delete file/directoryKey Constraint: Strong consistency for listings (unlike S3's eventual consistency)
Discussion Points:
Common Pitfall: Don't design the storage layer from scratch - assume blob storage exists. Focus on metadata management and consistency.