Design the Free/Busy Lookup Service Behind Outlook Scheduling
Last updated: November 29, 2026
Quick Overview
Design the backend that answers, for a set of attendees and a date range, when each person is busy, so Outlook's Scheduling Assistant can suggest meeting times in well under a second, including attendees in other organizations.
Microsoft
November 29, 20260
0
0 solved
Design the backend that answers, for a set of attendees and a date range, when each person is busy, so Outlook's Scheduling Assistant can suggest meeting times in well under a second, including attendees in other organizations.
Exchange Online handles enormous volumes of free/busy lookups because every meeting draft, room finder query, and Teams scheduling form issues one. Microsoft interviewers expect you to separate the authoritative calendar from a privacy-filtered availability view, and to think about caching, cross-tenant federation, and what happens when one mailbox is slow.
What the Interviewer Expects
- Distinguishes full calendar data from a reduced free/busy projection
- Precomputes or caches availability per mailbox and invalidates on change
- Fans out across mailbox shards in parallel with a time budget
- Respects sharing permissions and returns partial results
- Addresses time zones, recurring meetings, and tentative status
- Covers federation to other tenants and on-premises Exchange
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 do you expand a weekly recurring meeting with exceptions efficiently for a 3-month range?
- An attendee's mailbox shard is unhealthy: what does the user see?
- How would you add 'suggested times' ranking on top of raw availability?
- How do you protect against someone scraping colleagues' schedules through this API?
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
Input: up to about 100 attendees (people, rooms, distribution lists) and a window up to a few weeks. Output: for each attendee, merged busy intervals with a status (busy, tentative, out of office, wor...
High-Level Design
Calendars live in mailbox databases sharded by mailbox. A Free/Busy API front end resolves attendees (expanding groups, mapping external addresses), then fans out to the shards in parallel. Each s...