Design a scalable, high-performance meeting scheduler (like Google Calendar’s scheduling feature) that allows users to schedule meetings, check availability, send invites, and manage notifications across multiple time zones and calendars.
Functional Requirements (FR)
User & Calendar Management
•Users can register/login and maintain a profile.
•Each user has one or more calendars.
•Calendars store events/meetings with metadata (title, description, participants, start/end time, location, recurrence).
Meeting Scheduling
•Create, update, and delete meetings.
•Invite multiple participants and track their responses (accepted, declined, tentative).
•Detect and prevent scheduling conflicts for participants.
Availability & Free/Busy Check
•Check participant availability before scheduling.
•Suggest optimal meeting times based on participants’ calendars and preferences.
Notifications & Reminders
•Send notifications for meeting invites, updates, cancellations.
•Reminders before meetings (email, push notifications).
Recurring Meetings
•Support daily, weekly, monthly, or custom recurring events.
•Allow exceptions in recurring schedules.
Time Zone Handling
•Manage meetings across different time zones.
•Display correct local time for each participant.
Non-Functional Requirements (NFR)
•Scalability – Handle millions of users and concurrent meeting schedules.
•Low Latency – Quick response for free/busy checks and scheduling.
•Consistency – Ensure no double-booking occurs across calendars.
•Availability – High uptime, especially during peak working hours.
•Extensibility – Easily integrate with external calendar systems (Google, Outlook).
•Security & Privacy – Only authorized users can view/edit calendars or meetings.
Core Components
Component Responsibilities
User Service Manage users and profiles.
Calendar Service Manage calendars, events, and availability.
Meeting Service Handle meeting creation, updates, cancellations, and participant responses.
Notification Service Send invites, updates, reminders via email/push.
Availability Service Compute free/busy slots for participants.
Recurring Event Manager Handle recurring meetings and exceptions.
Integration Service Sync with external calendar providers.
Database Layer Store users, calendars, events, participants, notifications.
Data Flow Overview
1.User requests to schedule a meeting → Meeting Service checks participant availability via Availability Service.
2.Suggested times are returned; user confirms a slot.
3.Meeting Service creates the event in participants’ calendars.
4.Notification Service sends invites to all participants.
5.Participants respond → Meeting status updated in real-time.
6.For recurring meetings, Recurring Event Manager generates series and handles exceptions.
Design Considerations
Conflict Detection
•Efficiently check availability for multiple participants across calendars.
•Use interval trees or calendar bitmap structures for free/busy lookups.
Notifications
•Asynchronous processing using message queues for high throughput.
Time Zone Handling
•Store event times in UTC internally; convert to local time for display.
Recurring Meetings
•Store recurrence rules (RRULE) rather than duplicating events.
Scaling
•Shard data by user or organization to reduce contention.
•Use caching for frequently accessed free/busy information.
Extensibility
•APIs to integrate with third-party calendars.
•Support additional features like video conferencing links, attachments.
Example Use Case
•Alice wants to schedule a 30-minute meeting with Bob and Charlie next week.
•System checks their calendars → suggests 10 AM – 10:30 AM.
•Alice confirms → event created in all calendars → invites sent.
•Bob accepts, Charlie declines → Meeting Service updates status.
•Reminder sent 10 minutes before the meeting.
✅ This HLD problem tests:
•Designing event scheduling, conflict resolution, and notifications.
•Handling time zones, recurring events, and scaling for millions of users.
•Integration considerations with external calendar systems.