Design Permission Aware Typeahead Search Across Workspace Tasks
Last updated: November 29, 2026
Quick Overview
Design the search bar that returns tasks, projects and people as the user types, across a workspace with hundreds of millions of tasks, showing only results the user is allowed to see.
Asana
November 29, 20260
0
0 solved
Design the search bar that returns tasks, projects and people as the user types, across a workspace with hundreds of millions of tasks, showing only results the user is allowed to see.
Search in Asana must respect fine-grained access: private projects, team membership and guest users. The interviewer checks indexing pipelines, prefix matching under tight latency, and, most of all, how you enforce permissions without making every query slow.
What the Interviewer Expects
- Defines latency targets (p99 under 150 ms per keystroke)
- Builds an indexing pipeline from change events
- Uses prefix-friendly indexing such as edge n-grams
- Chooses a permission strategy and explains its trade-offs
- Ranks results with recency and personal relevance
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How fast must a newly created task become searchable?
- What happens when a user is removed from a team: how quickly do results change?
- How would you rank 'Q4 plan' when 300 tasks match?
- How do you keep one enterprise customer's heavy queries from hurting others?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: prefix search over task names, project names and people, results grouped by type, only items the user can access. Non-functional: p99 under 150 ms, new or renamed items searchable within a...
High-Level Design
Task and project changes flow from the primary database through a change log to an indexing service that writes documents into a search cluster sharded by workspace id. Each document includes the name...