How roshdyosf/high-concurrency-ticketing-api works
This Laravel API supports event discovery and ticket booking, with organizers managing events and seating. The principal customer flow is catalog search, seat-map or adjacent-seat selection, booking with temporary locks, Stripe payment, and webhook-confirmed tickets with QR codes. Other major capabilities include authentication, moderation, discounts, event-scoped gatekeepers, and organizer-reviewed refunds. Sampled controller and service calls anchor the catalog and organizer branches; several README-documented subsystems were not sampled, so their links are marked unverified.
Main entry points: EventCatalogService.php Catalog and seat map · V1 Booking and checkout · AuthService.php Authentication · AuthController.php Auth API
Components 27
Access and moderation
- Auth API
app/Http/Controllers/Api/V1/Auth/AuthController.php - Authentication
app/Services/AuthService.php - User accounts
app/Models/User.php - Email verification
app/Services/EmailVerificationService.php - Admin moderation
app/Services/OrganizerRequestService.php
Event management
- Event catalog API
app/Http/Controllers/Api/V1/Catalog/EventController.php - Catalog and seat map
app/Services/EventCatalogService.php - Adjacent-seat finder
app/Services/ContiguousSeatFinder.php - Events and discounts
app/Models/Event.php - Ticket tiers
app/Models/TicketTier.php - Seat inventory
app/Models/Seat.php - Organizer event API
app/Http/Controllers/Api/V1/Organizer/EventController.php - Event creation
app/Services/OrganizerEventService.php - Seat generation
app/Services/OrganizerSeatService.php - Tier management
app/Services/OrganizerTierService.php
Booking and payment
- Booking and checkout
app/Http/Controllers/Api/V1 - Seat holds
app/Services/SeatHoldService.php - Atomic seat locks
app/Services/SeatLockService.php - Orders and order items
app/Models/Order.php - Stripe payments
- Payment webhooks
app/Models/StripeWebhookEvent.php
Ticket operations
- Tickets and QR codes
app/Models/Ticket.php - Refund requests
app/Models/RefundRequest.php - Gatekeeper access
app/Services/GatekeeperAccessService.php
Other components
- Customer
- Organizer
- Redis
Connections 27
- Customer → Auth API: authenticates
- Auth API → Authentication: delegates
app/Http/Controllers/Api/V1/Auth/AuthController.php - Authentication → User accounts: creates users
app/Services/AuthService.php - Authentication → Email verification: sends verification
- Organizer → Admin moderation: requests approval
README.md - Customer → Event catalog API: browses events
README.md - Event catalog API → Catalog and seat map: delegates
app/Http/Controllers/Api/V1/Catalog/EventController.php - Catalog and seat map → Events and discounts: queries events
app/Services/EventCatalogService.php - Catalog and seat map → Ticket tiers: queries tiers
app/Services/EventCatalogService.php - Catalog and seat map → Seat inventory: reads seats
app/Services/EventCatalogService.php - Catalog and seat map → Adjacent-seat finder: finds adjacent seats
app/Services/EventCatalogService.php - Organizer → Organizer event API: creates events
README.md - Organizer event API → Event creation: delegates
app/Http/Controllers/Api/V1/Organizer/EventController.php - Organizer → Seat generation: generates seats
README.md - Seat generation → Seat inventory: inserts seats
app/Services/OrganizerSeatService.php - Organizer → Tier management: manages tiers
README.md - Customer → Booking and checkout: books tickets
README.md - Booking and checkout → Seat holds: places holds
README.md - Seat holds → Atomic seat locks: acquires locks
app/Services/SeatHoldService.php - Atomic seat locks → Redis: locks inventory
README.md - Booking and checkout → Orders and order items: creates orders
README.md - Booking and checkout → Stripe payments: charges payment
README.md - Stripe payments → Payment webhooks: confirms payment
README.md - Payment webhooks → Tickets and QR codes: issues tickets
README.md - Customer → Refund requests: requests refund
README.md - Organizer → Refund requests: reviews request
README.md - Organizer → Gatekeeper access: assigns access
README.md