SystemDesign Document
SystemDesign Document
🎯 1. Requirements Gathering
✅ Functional Requirements
Payment integration
⚙️Non-Functional Requirements
Scalability
High availability
🧱 2. System Architecture
🔹 Frontend
Event/Schedule Service
Booking Service
Payment Service
Notification Service
Admin Service
🔹 Databases
🔸 User Management
🔸 Event/Schedule Service
🔸 Seat Management
🔸 Booking Workflow
1. User selects event & time
4. On payment success:
Confirmation generated
Notification sent
🔸 Payment Integration
🔸 Notification Service
🧠 5. Cons
derations
Caching: Use Redis for frequent queries like showtimes or seat availability
🧱 1. High-Level Components
🔹 User Layer
Mobile app or web interface
🔹 Database Layer
🔐 2. Security Architecture

🔁 3. UPI Flow (
PCI Integration)
UPI (in India) involves NPCI as the switch. PhonePe acts as a Payment Service
Provider (PSP).
Key Features:
Load money from bank or card
Design:
Initiation
1. User starts payment
Processing
Completion
5. Failure/Timeout Handling
6. Rollback or retry

📊 7. Scalability &
eliability
Entities:
User: id, phone, KYC_status, auth_token