Design a high-level system for a crowdfunding platform where users can create campaigns, donate to campaigns, and track fund collection progress. The system should support high availability, secure payments, and transparency for donors.
Functional Requirements (FR)
User Management
•Users can register/login using email or social login.
•Maintain user profiles with name, contact info, and donation history.
Campaign Management
•Users can create campaigns with: title, description, goal amount, deadline, images/videos, and category.
•Campaign owners can edit campaigns until a certain point (before expiry or after approval).
•View campaign progress and donor list.
Donation Management
•Users can donate to campaigns using multiple payment methods (card, UPI, wallets).
•Generate receipts for donations.
•Track donations per campaign and per donor.
Search & Discovery
•Search campaigns by category, popularity, or goal amount.
•Feature trending or urgent campaigns.
Notifications
•Notify campaign owners about new donations.
•Notify donors about campaign progress or milestones.
Reporting & Analytics
•Campaign owners: track total funds collected, donor info, milestones achieved.
•Platform: monitor top-performing campaigns and donation trends.
Non-Functional Requirements (NFR)
•Scalability: Handle thousands of campaigns and millions of donations.
•High Availability: Platform should be accessible 24/7.
•Low Latency: Fast donation processing and real-time campaign updates.
•Security: Encrypt sensitive data (payment info, personal info).
•Reliability & Transparency: Ensure accurate fund tracking and prevent fraud.
Core Components
API / Application Layer
•Handles requests for campaign creation, donation, search, and notifications.
Camaign Service
•Manage creation, updates, and retrieval of campaign data.
•Track goal progress, deadlines, and featured campaigns.
Donation / Payment Service
•Process donations through third-party payment gateways.
•Record transactions and generate receipts.
•Ensure transactional integrity (atomic updates to campaign fund).
User Service
•Manage user registration, login, and profiles.
•Track user donation history and campaign ownership.
Search & Recommendation Service
•Enable searching by category, popularity, and other filters.
•Optionally, suggest campaigns to users based on preferences.
Notification Service
•Notify users about campaign updates, milestones, and donation confirmations.
Database / Storage Layer
•Store user data, campaign data, donations, and transaction logs.
•Use relational DB for transactional data, NoSQL or caching for fast reads.
Analytics / Reporting Service
•Provide dashboards for campaign performance and donation trends.
High-Level Data Flow
1.User submits a new campaign → Campaign Service → Store campaign in DB → Notify platform admins (optional).
2.Donor selects campaign → Donation Service → Process payment → Update campaign fund → Notify donor and campaign owner.
3.User searches campaigns → Search Service → Query DB or cache → Return results.
4.Notifications triggered → Notification Service → Email / Push / SMS to users.
Design Considerations
•Use transactional integrity to ensure donation updates are consistent.
•Use caching (Redis / Memcached) for popular campaign data.
•Implement rate limiting and anti-fraud mechanisms for donations.
•Use asynchronous processing for notifications and analytics.
•Optional: support multi-currency donations and international campaigns.
✅ This is a complete HLD Problem Statement for a Milaap-like Crowdfunding Platform, covering core modules, data flow, payment handling, and scalability considerations.