Design Microsoft OneDrive

Hard45 min
1 / 31
System design answer

Design Microsoft OneDrive

Hard45 min31 sections
understanding•10 min read

Problem Statement: OneDrive as the Microsoft 365 File Fabric

Frames OneDrive as a metadata-plus-content sync platform deeply coupled to Office co-authoring and enterprise identity, not a generic blob bucket.

Problem statement

Design OneDrive, the cloud file service at the center of Microsoft 365. Every user gets a personal drive; every business user gets OneDrive for Business, which is a personal SharePoint site collection; every team gets shared libraries. The platform must store files durably, sync them across Windows, macOS, iOS, Android, and web clients, resolve conflicts, support sharing with internal users and external guests, drive real-time co-authoring inside Word, Excel, and PowerPoint, keep unlimited-style version history, and enforce enterprise compliance: Data Loss Prevention, retention policies, sensitivity labels, eDiscovery, and audit.

This is not an object-store design exercise wearing a costume. Three properties make it distinctive. First, the namespace is a live, mutable tree that millions of devices must converge on: rename a folder with 40,000 descendants and every synced client must reach the same tree without re-downloading content. Second, content moves in both directions continuously; a client is simultaneously a consumer and a producer, so the system must be correct under concurrent edits from a laptop, a phone, and a browser tab. Third, every read and write is evaluated against an identity graph: Entra ID users, groups, guest accounts, sharing links, and tenant policy. Authorization is on the hot path of every byte.

Four architectural planes

  1. Metadata plane: drives, items, parent-child tree, ETags, permissions, quotas. This is the strongly consistent core.
  2. Content plane: immutable, content-addressed blobs in regional object storage, chunked and encrypted per blob.
  3. Collaboration plane: sharing links, invitations, presence, and co-authoring sessions for Office files.
  4. Governance plane: DLP scans, retention labels, legal hold, audit trail, eDiscovery export.

A strong answer keeps these planes separate. The content plane never decides access; the metadata plane never stores bytes; the collaboration plane degrades without breaking sync; the governance plane observes without sitting inside the write critical path for ordinary files.

Public baseline versus design assumptions

Public figures establish category scale. Microsoft reported more than 250 million monthly active users across OneDrive and SharePoint in FY2020 earnings commentary. Google announced more than 1 billion Drive users in 2021. Dropbox's FY2023 filings report roughly 18.5 million average revenue users and more than an exabyte-class stored footprint built on its Magic Pocket storage. These are company-reported context numbers, not requirements for our fictional system.

For capacity planning this answer explicitly assumes: 500 million registered accounts, 300 million monthly active users, 60 million daily active users, 150 million connected sync clients, 2.5 billion metadata operations per day, 600 million content transfers per day, 1.8 petabytes of new content ingested per day, and 22 exabytes stored including versions. Unless tied to a citation, every number in this answer is a stated design assumption, target, or budget.

The interview framing

Open by separating motion-equivalent safety for a file service: durability and consistency are the invariants; speed and features may degrade. A file may arrive slowly. A file must never be lost, silently overwritten without a version, or exposed to the wrong principal. Everything downstream — the sync protocol, the co-authoring pipeline, the DLP scanner — is built to keep that ordering.

Key Highlights

  • •Metadata plane is strongly consistent per drive; content plane is immutable and content-addressed.
  • •Authorization against Entra ID sits on the hot path of every read and write.
  • •Public context: 250M+ OneDrive/SharePoint MAU reported by Microsoft FY2020; 1B+ Drive users reported by Google in 2021.
  • •Assumed scale: 60M DAU, 2.5B metadata ops/day, 1.8 PB/day ingest, 22 EB stored.
  • •Four planes: metadata, content, collaboration, governance.
Authz Is On the Hot Path
State early that every byte read and write is authorized against the identity graph. That distinguishes an enterprise file platform from a blob store instantly.
Do Not Design a Bucket
A design that stores files as flat objects and treats folders as key prefixes cannot answer subtree renames, delta sync, or per-item permissions credibly.

Section Rescue Kit

Buzzwords to use:

Content-Addressed StorageNamespace Convergence

Safe statements:

  • "Let me separate the four planes first, because each has a different consistency and failure model."
  • "Durability and authorization are invariants; latency and features are what we let degrade."
Design Microsoft OneDrive - System Design | WinJob | WinJob