Design a file storage service like Google Drive or Dropbox.
Code Playground
JavaScript (V8)
Loading...
Console Output
// Output will appear here...
// For React: ReactDOM.createRoot(rootElement).render(<App />);
// For React: ReactDOM.createRoot(rootElement).render(<App />);
Recommended Answer
System Design Scenario:
1. Client:
* Chunking files (4MB).
* Hashing chunks (deduplication).
* Sync logic (handling conflicts).
2. Backend:
* Block Server: Stores raw blocks in S3/Object Storage.
* Metadata DB: File hierarchy, versions, permissions.
3. Reliability: Erasure Coding for storage efficiency and durability.