Event Management System

Difficulty: MEDIUMCategory: LLDFrequency: 1Asked On 2022-04-15

Problem Statement

Design and implement an Event Management System (EMS) that allows users to create, manage, and participate in events. Focus on event scheduling, participant management, notifications, and reporting.


Functional Requirements (FR)


User Management


•Users can register/login and manage profiles.
•Users can RSVP to events or manage their event attendance.


Event Management


•Create, update, and delete events.
•Event attributes: name, description, date/time, location, organizer, capacity, category.
•Support recurring events.
•Optional: Online vs. offline events.


Participation & Tickets


•Users can register for events (free or paid).
•Track participants, attendance, and ticket status.
•Generate unique tickets/QR codes for events.


Notifications


•Notify users about upcoming events, changes, or cancellations.
•Optional: Reminder notifications before event start.


Search & Discovery


•Search events by location, category, date, or popularity.
•Recommend events based on user interests.


Reporting & Analytics


•Event organizers can see participant lists, RSVPs, and feedback.
•Generate reports for attendance, revenue, or engagement.


Non-Functional Requirements (NFR)


•Performance → Efficient search and event retrieval.
•Scalability → Support thousands of events and participants.
•Availability → System should be available 24/7.
•Consistency → Ensure ticket availability and participant count is accurate.


Core Entities & Attributes


User


•userId, name, email, phone, profileInfo


Event


•eventId, name, description, organizerId, location, startTime, endTime, capacity, category, isRecurring


Ticket / Registration


•ticketId, eventId, userId, status (registered/checked-in), paymentStatus


Notification


•notificationId, userId, eventId, message, timestamp, type


Organizer


•organizerId, name, contactInfo, events[]


Core Components


UserService


•Manage user profiles, registrations, and RSVPs.


EventService


•Create, update, delete events, and manage event capacity.


TicketService


•Handle ticket generation, registration, and check-in.


NotificationService


•Send notifications for upcoming events, updates, or cancellations.


SearchService


•Provide event discovery by filters and recommendations.


AnalyticsService


•Generate reports on attendance, ticket sales, and engagement.


APIs / Operations


User APIs


•createUser(user)
•updateUser(userId, details)
•getUserEvents(userId)


Event APIs


•createEvent(event)
•updateEvent(eventId, details)
•deleteEvent(eventId)
•getEvent(eventId)
•searchEvents(filters)


Ticket / Registration APIs


•registerForEvent(userId, eventId)
•cancelRegistration(userId, eventId)
•checkIn(userId, eventId)
•getEventParticipants(eventId)


Notification APIs


•sendNotification(userId, eventId, message)


LLD Design Goals


•Class Diagram → User, Event, Ticket, Organizer, Notification, Services.


Design Patterns:


•Observer → Notify users about event updates.
•Factory → For creating tickets/registrations.
•Singleton (Optional) → For centralized notification service.
•Concurrency Handling → Thread-safe registration to prevent overbooking.
•Trade-offs →1. Real-time seat/ticket validation vs. performance.2. Database normalization vs. denormalization for fast search.


Solution

Comments