Design a Meeting Scheduler

Difficulty: MEDIUMCategory: LLDFrequency: 1Asked On 2025-03-05

Problem Statement

You are required to design a Meeting Scheduler application that helps users schedule, manage, and track meetings with multiple participants while resolving conflicts and sending notifications.


Functional Requirements (FR)


User Management


•Register, login, and manage profiles.
•Each user has a personal calendar of meetings.


Meeting Management


•Create, update, and cancel meetings.
•Meetings include details like title, description, start time, end time, location, and recurrence.
•Invite multiple participants.


Conflict Resolution


•Detect overlapping meetings in participants’ calendars.
•Suggest alternative time slots if conflicts occur.


Recurring Meetings


•Support daily, weekly, monthly recurring schedules.


Notifications


•Notify participants about invitations, updates, cancellations.
•Send reminders before meeting start.


Time Zone Support


•Handle users across different time zones.


Non-Functional Requirements (NFR)


•Consistency: Calendars must always reflect the latest state.
•Low Latency: Conflict checking and scheduling should be fast.
•Scalability: Should support thousands of users and meetings.
•Extensibility: Should allow future integration with Google/Outlook Calendar or video conferencing links.


Core Entities / Classes


•User: userId, name, email, calendar
•Meeting: meetingId, title, description, organizer, participants, startTime, endTime, recurrencePattern, status
•Calendar: A collection of meetings for a user.
•Notification: notificationId, userId, message, type (email/push), timestamp
•RecurrencePattern: Rules for repeating meetings (daily, weekly, monthly).


Operations


•createMeeting(organizerId, participants, startTime, endTime, details)
•updateMeeting(meetingId, newDetails)
•cancelMeeting(meetingId)
•checkAvailability(userIds, startTime, endTime)
•sendNotification(userId, message)
•addMeetingToCalendar(userId, meeting)
•removeMeetingFromCalendar(userId, meetingId)


Constraints & Considerations


•All times stored in UTC, converted for users.
•Efficient data structure (e.g., interval tree) for conflict detection.
•Notifications handled via event queue / scheduler.
•Recurring meetings stored as base + recurrence rule, not as individual entries.


Solution

Comments