Design Meeting Scheduler System (Participants + Notifications)
Difficulty: MEDIUMCategory: LLDFrequency: 1Asked On 2025-02-12
Problem Statement
Design a Meeting Scheduler System that allows users to schedule, update, and cancel meetings while checking participants’ availability and sending notifications. The system should support both individuals and groups, and handle conflict resolution when time overlaps occur.
Functional Requirements
1.Users & Participants
•Each user has a calendar with their existing meetings.
•Meetings can have multiple participants.
2.Core Features
•Create a meeting by inviting participants.
•Check availability of all participants before confirming.
•Update or cancel meetings (notifying all participants).
•Support recurring meetings (daily/weekly/monthly).
3.Notifications
•Send meeting invites to participants.
•Notify on updates/cancellations.
•Reminders before meeting starts.
4.APIs / Operations
•scheduleMeeting(Organizer, List<Participants>, TimeSlot) → returns Meeting if scheduled.
•updateMeeting(MeetingId, newTimeSlot) → reschedules with availability check.
•cancelMeeting(MeetingId) → cancels and sends notifications.
•getCalendar(UserId) → fetch user’s upcoming meetings.
5.Constraints / Edge Cases
•What if one participant is unavailable? → reject scheduling or suggest alternative slots.
•Conflicting meetings for same participant → handle conflict gracefully.
•Recurring meetings overlapping with existing meetings → handle exceptions.
•Time zones support for global users.
Non-Functional Requirements
•Scalability: Should support millions of users and events.
•Concurrency: Multiple users scheduling/updating meetings simultaneously.
•Reliability: No double-booking, atomic updates to calendars.
•Extensibility: Should support integration with email/SMS/push notifications.
Design Hints (Interview Direction)
•Entities / Classes
•User, Calendar, Meeting, TimeSlot, Notification.
•Patterns
•Observer Pattern → Notifications to participants.
•Factory Pattern → Meeting creation.
•Singleton → Notification service.
•Data Structures
•Each user → Calendar (list of Meetings, sorted by TimeSlot).
•Use PriorityQueue or TreeMap for fast availability checks.
Example Flow
1.Alice creates meeting → invites Bob & Carol → system checks their calendars → confirms booking.
2.Notification service sends invites → participants accept/decline.
3.Later, Alice updates the meeting → participants get update notifications.
4.If Alice cancels → all participants notified, slots freed.
👉 This problem tests OOP design, concurrency, notifications, availability check, and tradeoffs (sync vs async notifications, recurring meetings, scalability).