This challenge builds on Cloud Drive 1 - Personal File Storage. Complete it first for the best experience.
SkyVault is now an enterprise platform serving 100 million users across thousands of organizations. New requirements:
- Real-time collaborative editing - multiple users edit documents simultaneously (Google Docs-style). Conflict resolution with Operational Transformation (OT) or CRDTs must keep all clients in sync within 200 ms.•Full-text search - search across all files a user has access to (including inside PDFs and Office documents) with results in < 1 second.•eDiscovery & legal hold - admins can place a legal hold on a user's files, preventing deletion. All file activity (views, edits, shares, deletes) is audit-logged for compliance.•Data Loss Prevention (DLP) - automatically scan uploaded files for sensitive data (SSNs, credit card numbers, API keys). Flag or block sharing of flagged files.•Multi-region replication - enterprise customers can choose where their data resides (US, EU, Asia). Data must not leave the chosen region. Cross-region disaster recovery with RPO < 1 minute.
This challenge combines storage at scale, real-time systems, search, and enterprise compliance.
Scale to 100 M users with real-time co-editing, eDiscovery, data loss prevention, and multi-region replication. Build this architecture under realistic production constraints, then validate tradeoffs in the design lab simulation.
Request path: The solution keeps ingress, service logic, and stateful dependencies separated so each layer can scale independently.
Reference flow: Web Clients -> Load Balancer -> API Gateway -> Core Service -> Auth Service -> Primary SQL DB -> Read Model DB -> Object Storage