Multi-Tenant Workspace Channel, Thread & ACL-Filtered Search
Design a Slack-scale enterprise chat search engine indexing millions of live messages, thread replies, and file snippets per minute while strictly intersecting query results with caller private-channel memberships and isolating mega-enterprise tenants.
Functional Requirements
- FR-1POST /v1/workspaces/{workspace_id}/messages/index — Indexes newly posted or edited channel/DM messages within < 3s search visibility.
- FR-2GET /v1/workspaces/{workspace_id}/search — Executes BM25 + recency search strictly filtered to channels/DMs the caller can access.
- FR-3DELETE /v1/workspaces/{workspace_id}/messages/{msg_id} — Honours message deletions and enterprise compliance retention purges across index segments.
- FR-4Must prevent cross-tenant noisy neighbors (500k-seat workspace vs 50-seat startup) and sustain p99 <= 68 ms under 7x gray storage latency.
Workload Profile
Consistency Model
Immediate compliance tombstoning on deleted messages/revoked channel membership; near-real-time (< 3s) new message segment refresh.
Sign in and either achieve AC or complete 3 official submissions on this question to inspect community diagrams and writeups.
Click Submit in the top bar to evaluate against all 7 judge cases and save each run here.
Click an item in Inventory above, or press B to add a component, double-click to name, C to connect.
Write under ### Architecture for Diagram to take that up directly