Design a Meeting Scheduler System
Difficulty: MEDIUMCategory: HLDFrequency: 1Asked On 2024-12-09
Problem Statement
Design a Meeting Scheduler System (similar to Google Calendar, Outlook, or Zoom scheduler) that allows users to create, manage, and join meetings across different time zones and organizations. The system should handle conflicts, notify participants, and scale for millions of users.
Functional Requirements
1.User & Calendar Management
•Users can create accounts and manage calendars.
•Support multiple calendars (work, personal, shared).
2.Meeting Scheduling
•Create, update, and delete meetings.
•Invite participants via email/ID.
•Handle time zone conversions automatically.
•Detect and resolve conflicts/overlaps.
3.Notifications & Reminders
•Send meeting invites and confirmations.
•Send reminders (configurable) before meetings.
•Notify participants of updates/cancellations.
4.Availability Management
•Mark time slots as available/busy.
•Query availability across multiple participants.
•Suggest optimal slots for all participants.
5.Integration
•Sync with external calendars (Google, Outlook).
•Provide APIs for 3rd-party apps.
Non-Functional Requirements
•Scalability → Support millions of users and concurrent meetings.
•Consistency → Strong consistency for meeting booking to avoid double-booking.
•Reliability → Ensure fault tolerance and retry mechanisms for invites.
•Performance → Quick conflict checks and slot suggestions (<1s response).
•Security → Role-based access (organizer, participant), encrypted invites, audit logs.
Design Considerations
•Storage
•Relational DB (Postgres/MySQL) for meeting & user data.
•Caching (Redis) for frequently accessed availability.
•Conflict Resolution
•Use transactions or distributed locks to prevent double-bookings.
•Search & Availability Lookup
•Index on user calendars and meeting times.
•Support querying availability across multiple users efficiently.
•Notifications
•Event-driven architecture using Kafka/RabbitMQ.
•Push notifications + email integration.
•Scaling Strategy
•Partition calendars by user/organization.
•Use load balancers and microservices (user service, calendar service, notification service).
APIs / Interfaces (Conceptual)
•createMeeting(userId, participants[], startTime, endTime) → Returns meetingId.
•updateMeeting(meetingId, newTime) → Update meeting details.
•deleteMeeting(meetingId) → Cancel meeting.
•getAvailability(userIds[], range) → Return free/busy slots.
•sendNotification(meetingId, type) → Trigger invite/reminder.