Overview
I developed OmraDreamn, a high-concurrency platform built on Laravel 12 and Vue 3. The system manages a continuous cycle of campaigns where one Omra trip is funded at a time. It leverages Laravel Reverb (WebSockets) to broadcast donation progress in real-time and provides an administrative suite to manage the manual “Live Draw” winner selection process.
Challenge
The core requirement was to maintain “Continuous Fundraising” without downtime:
- Atomic Integrity: Preventing over-funding when multiple donors contribute simultaneously.
- Seamless Transitions: Managing the lifecycle from
ActivetoFundedand immediately triggering the next campaign. - Manual Verification: Ensuring a clean separation between the automated donation flow and the human-led winner selection event.
Solution
I engineered a state-driven architecture centered around:
- Concurrency Handling: Used
DB::transaction()andlockForUpdate()during donation processing to maintain accurate, atomic progress tracking. - Real-Time Updates: Integrated Laravel Reverb to update progress bars instantly for all users via WebSockets.
- State Machine Logic: Built a robust service layer that monitors campaign limits and triggers the “Funded — Pending Draw” status automatically.
- Admin Verification Panel: Designed an interface for manual winner selection that triggers automated notifications to all applicants upon completion.
Impact
Delivered a reliable, transparent platform that increased donation throughput by ensuring the “next” campaign is always ready. The system successfully handles high-traffic spikes without data inconsistencies, providing a professional, trustworthy experience for donors and applicants alike.
