Design a meeting scheduler

Difficulty: MEDIUMCategory: LLDFrequency: 1Asked On 2023-02-20

Problem Statement

Designing the Meeting Scheduler system, which allows users within an organization to create, manage, and schedule meetings. The system should handle multiple participants, conflicts, and notifications while ensuring scalability and ease of use.


Functional Requirements (FR)


1.User & Calendar Management
•Users can register/login and maintain a personal calendar.
•Each user has working hours, time zone, and availability.
2.Meeting Scheduling
•A user can create a meeting with details:
•Title, agenda, organizer, participants, start time, end time, location/online link.
•The system must check availability of all participants.
•Suggest best possible meeting slots based on free/busy status.
•Allow recurring meetings (daily/weekly/monthly).
3.Conflict Management
•Prevent double-booking of a user’s calendar.
•Provide options to reschedule if a conflict exists.
4.Notifications
•Send invites to participants.
•Send reminders before the meeting.
•Notify participants on updates or cancellations.
5.Meeting Management
•Participants can accept/decline invites.
•Organizer can edit/cancel meetings.
•Store meeting history and past decisions.


Non-Functional Requirements (NFR)


•Scalability: Support thousands of users and concurrent meetings.
•Consistency: Calendar data must remain accurate across users.
•Availability: The scheduler must be available 24/7.
•Performance: Suggesting slots should be quick (low latency).
•Security: Role-based access (only organizer can modify).


Core Entities & Attributes


1.User
•userId, name, email, timeZone, workingHours, calendar
2.Meeting
•meetingId, title, description, organizerId, participantIds, startTime, endTime, location/link, status
3.Calendar
•calendarId, userId, listOfMeetings
4.Invitation
•invitationId, meetingId, participantId, status (Pending/Accepted/Declined)
5.Notification
•notificationId, type (invite/reminder/update), recipientId, timestamp


APIs / Operations


1.User APIs
•createUser(name, email, timeZone, workingHours)
•getUserCalendar(userId)
2.Meeting APIs
•createMeeting(organizerId, participantIds, startTime, endTime, details)
•updateMeeting(meetingId, newDetails)
•cancelMeeting(meetingId)
•getMeeting(meetingId)
3.Calendar APIs
•getAvailableSlots(userId, dateRange)
•checkConflicts(participantIds, proposedSlot)
4.Invitation APIs
•sendInvitation(meetingId, participantIds)
•respondToInvitation(invitationId, response)
5.Notification APIs
•sendReminder(meetingId, participantIds)
•sendUpdate(meetingId, participantIds)


Advanced Features (Optional / Bonus)


•Integration with external calendars (Google Calendar, Outlook).
•AI-based smart suggestions for optimal time & room allocation.
•Support for meeting rooms/equipment booking.
•Recurring meeting exceptions (skip holidays, reschedule).
•Analytics dashboard (meeting frequency, average participation).


Solution

Comments