
π Sports & Fitness Β· Sequence
How a fan books tickets for a big match: queue, seat selection with a temporary hold, payment and a mobile ticket with QR code.
Drawing diagramβ¦
Ticket booking sequence: when sales open the fan joins a virtual queue, gets admitted, picks a stand and seats on the seat map, the inventory service holds the seats for 10 minutes, the fan pays through the payment gateway, the booking is confirmed and the ticketing service issues mobile tickets with rotating QR codes; on match day the gate scanner validates the QR and marks the ticket used.
sequenceDiagram actor F as Fan participant Q as Virtual Queue participant T as Ticketing App participant INV as Seat Inventory participant PG as Payment Gateway participant G as Stadium Gate Scanner F->>Q: Join queue at sale opening Q-->>F: Admitted F->>T: Choose stand, 2 seats T->>INV: Hold seats 10 min INV-->>T: Held F->>PG: Pay Rs 3,000 PG-->>T: Paid T->>INV: Confirm seats T-->>F: Mobile tickets with QR F->>G: Scan QR on match day G->>T: Validate T-->>G: Valid, mark used
How live scores reach millions of fans within a second: official scorers, the data feed, stream processing, caching and push notifications.
Where each part of a fitness tracking product runs: the wearable, the phone app that syncs it, and the cloud services for workouts, goals and coaching.
A platform to run an amateur or professional league: team registration, fixtures, match scoring, standings and fan apps.
A timeline for organising a multi-team tournament: registrations, league stage, knockouts, final and the work around it.
A schema for a sports league: teams, players, squads per season, matches, match events and player statistics.
The states of a gym membership: trial, active, frozen, expiring, renewed, lapsed and cancelled.