Design (LLD) a file sharing system like Dropbox - Machine CodingSubhahu JainΒ·Jul 15, 2023Β·7 min readTable of contentsIssues in Above Designπ₯ Problem 1: FileStorageManager Singleton = Global Bottleneckβ What we Didβ Why This Is DangerousSolutionπ₯ Problem 2: File Data Stored in Memory (Instant Red Flag)β What we Didβ Why This Is a Deal-BreakerSolutionπ₯ Problem 3: No Concurrency Model for File Updatesβ Whatβs Missing CompletelySolutionπ₯ Problem 4: Version Control Is Claimed, Not Designedβ Claimed Featureβ Actual CodeSolutionπ₯ Problem 5: Proxy Pattern Is Used Incorrectly for Permissionsβ What we Didβ Why This Is UnsafeSolutionπ₯ Problem 6: Folder Model Breaks at Scaleβ What we Didβ Why This Is NaiveSolutionπ₯ Problem 7: No Real Synchronization Modelβ Claimed Featureβ Missing RealitySolutionπ₯ Problem 8: Observer Pattern for Collaboration Will Explodeβ What we Impliedβ Why This Is DangerousSolutionNOTEWeb DevelopmentPythonJavaScriptProgramming BlogsCSS