Problem Statement: An Enterprise Collaboration Hub
Frames the product as a multi-tenant productivity platform that fuses chat, files, meetings, presence, and Office co-authoring under one identity and compliance fabric.
Problem statement
Design an enterprise collaboration hub — a Microsoft Teams-style platform — where an organization creates teams, each with channels for topic-based conversation, alongside private 1:1 and group chats. Members share files that open directly into embedded Office editing, join voice and video meetings, and see each other's live presence. The platform must co-edit documents in real time, schedule meetings against corporate calendars, and span very large, nested organizations with guest and federated users.
This is not a single chat server. It is a federated productivity plane stitched together from at least five distinct workload families: durable messaging, ephemeral presence, large-object file storage, real-time media, and compliance. Each family has a different dominant access pattern, a different consistency requirement, and a different failure posture. A strong answer separates them deliberately instead of forcing them through one universal database or one universal message bus.
The four planes
- Identity and tenancy plane. Every object — team, channel, message, file, meeting — hangs off a tenant and a set of principals (users, guests, service principals). Authorization is evaluated per request against membership and role. This is the plane that makes multi-tenancy and guest access safe.
- Messaging plane. Durable, ordered conversations for channels and chats, with delivery, read receipts, mentions, and search. This is append-heavy and time-series-like.
- Presence and real-time plane. Ephemeral availability state (available, busy, in a call, do-not-disturb) pushed to watchers with low latency. This is latest-value and disposable.
- Content and media plane. Files in SharePoint-style document libraries and 1:1 chat storage, Office co-authoring sessions, and meeting media. This is large-object and stream-heavy.
Why the problem is distinctive
A consumer messenger can lose a presence update with no consequence. An enterprise hub cannot lose a compliance hold, cannot leak one tenant's file into another tenant's search, and cannot allow a guest to write into a channel they were never invited to. The design therefore treats authorization and compliance as first-class invariants, not features bolted on at the end.
The problem requires team-based channels and private chats, file sharing with embedded Office editing, voice/video calling, and a multi-tenant guest approach, against NFRs of large-enterprise scale, security and compliance with retention and e-discovery, low-latency messaging and presence, and federation with external domains.
Public operating baseline versus design assumptions
Public evidence shows the category operates at planetary scale. Microsoft has reported roughly 320 million monthly active Teams users, growing from about 44 million in March 2020 to 75 million daily active users at the April 2020 peak. Slack reports tens of millions of daily active users, and Discord reports more than 500 million registered users. These are cited company figures, not requirements for our fictional system.
For capacity planning this answer explicitly assumes a mature enterprise deployment with 120 million monthly active users, 40 million daily active users, 10 million peak concurrent users, and 1.2 billion messages per day. Unless a number is tied to a citation, it is a stated design assumption, target, budget, or illustrative threshold — never a claim about any company's private architecture.
Durable success versus real-time freshness
The answer separates durable correctness from ephemeral freshness. A message, a file, a membership grant, and a compliance hold must be durably correct and recoverable. A presence dot and a typing indicator may be dropped and rebuilt without harm. Designing both with the same strong-consistency tooling would waste enormous throughput; designing both with the same eventual cache would corrupt the ledger. The rest of this answer keeps that split visible in every layer.
Key Highlights
- •The platform fuses five workload families: durable messaging, ephemeral presence, large-object files, real-time media, and compliance.
- •Four planes: identity/tenancy, messaging, presence/real-time, and content/media — each with its own consistency and failure model.
- •Authorization and compliance are treated as invariants, not afterthoughts.
- •Public fleet figures are company-reported context; every uncited scale or SLO here is an explicit design assumption.
- •Durable correctness (messages, files, grants, holds) is separated from ephemeral freshness (presence, typing).
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate durable correctness from ephemeral freshness before choosing any database."
- "Let me define which plane owns each decision before I draw the boxes."