Delivered remotely for a business based in London, United Kingdom. Names withheld by agreement.
Project Overview
When an awarding body schedules a national licensing exam at 09:00 GMT, platform defects are not minor UX annoyances—they invalidate candidate cohorts and trigger regulatory inquiries. Assessment organizations operating out of London needed to replace brittle legacy testing portals that froze under simultaneous logins, dropped essay drafts during brief Wi-Fi flickers, and offered weak visibility for remote invigilators.
We architected and delivered an online examination system using Laravel, React, and MySQL designed specifically around deterministic exam-window state machines and fault-tolerant answer capture. Every architectural boundary assumes unstable home networks, strict time-zone accuracy, and post-exam audit scrutiny.
Assessment Delivery Challenges
Existing testing software struggled across four critical operational realities:
- Start-of-window thundering herds: Generating randomized question sets dynamically from large item banks at the top of the hour saturated database connections.
- Silent draft loss: Periodic full-form saves failed silently on packet loss, leaving candidates unaware that their last twenty minutes of essay writing never reached the server.
- Timer spoofing & tab anomalies: Relying on browser system clocks allowed candidates with misconfigured time zones—or deliberate clock changes—to distort remaining durations.
- Fragmented marking workflows: Exporting constructed responses to external spreadsheets for human examiners severed audit links and introduced transcription errors.
Architectural Strategy
We built the platform around server-authoritative state transitions paired with an offline-first React delivery shell. Before a scheduled sitting opens, Laravel pre-compiles candidate question manifests from frozen item-bank snapshots into Redis, avoiding expensive randomization joins when the clock strikes zero.
Inside the browser, React separates rendering from persistence: every answer change updates local React state, writes immediately to IndexedDB, and debounces an idempotent patch to Laravel tagged with a monotonic revision ID. MySQL only accepts revisions newer than the stored cursor, guaranteeing that out-of-order network retries never overwrite newer edits.
Core Capabilities
- Blueprint-Driven Item Randomization: Exam authors define topic weights, difficulty distributions, and mutual-exclusion rules so every candidate receives an equivalent yet distinct test form.
- Resilient Distraction-Free Runner: Supports single/multiple choice, matrix grids, rich-text essays, code snippets, and exhibit PDF viewers with WCAG-compliant shortcuts and per-candidate accommodation multipliers.
- Direct-to-Storage Remote Proctoring: Captures periodic webcam frames, screen shares, and browser environment signals via pre-signed upload URLs without routing heavy media streams through PHP workers.
- Live Invigilation Console: Proctors monitor active cohorts, pause individual candidate clocks for verified technical incidents, dispatch warnings, and flag suspicious events with timestamped evidence.
- Double-Blind Marking & Psychometrics: Automated MCQ scoring pairs with anonymized multi-marker essay workflows, inter-rater divergence alerts, and post-exam item-difficulty analytics.
Technical Architecture
React runs as a clean single-page exam client communicating with stateless Laravel API nodes fronted by load balancers. Redis coordinates distributed session locks—preventing simultaneous logins for the same sitting—alongside high-speed heartbeat tracking and pre-compiled question manifests. MySQL serves as the ACID source of truth for item versions, candidate submissions, accommodations, and immutable audit entries.
Flow: React Exam Client (IndexedDB Drafts) → Laravel Idempotent Sync API → Redis Session Lock & Sequence Guard → MySQL Submission Ledger → Laravel Horizon Grading & Psychometric Queue → S3 Encrypted Evidence & Scorecards
Proctoring media never passes through Laravel PHP-FPM processes; React requests short-lived signed upload tokens from Laravel and streams encrypted media chunks directly to object storage while logging chunk checksums to the candidate's audit timeline.
Technology Stack
| Category | Technology detail |
|---|---|
| Assessment Client | React + TypeScript distraction-free exam runner with IndexedDB offline draft cache |
| Core API & Auth | Laravel 11 PHP 8.4 REST services enforcing server-authoritative exam windows |
| Transactional Store | MySQL 8 InnoDB storing versioned item banks, seating states, and response rows |
| State & Locking | Redis atomic timers, per-attempt sequence counters, and session-hijack guards |
| Async Processing | Laravel Horizon workers executing batch scoring, PDF scorecards, and video indexing |
| Proctoring Media | Chunked encrypted webcam and screen snapshots uploaded directly to S3 Object Storage |
| Accessibility | WCAG AA compliant keyboard navigation, high-contrast modes, and extra-time accommodations |
| Real-Time Invigilation | WebSocket telemetry channel streaming focus-loss and connectivity alerts to proctors |
| Audit Trail | Append-only cryptographically chained event logs capturing submission and proctor actions |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Dynamic SQL randomization stalled at cohort start times | Pre-compiled candidate manifests into Redis prior to exam open; adds a lightweight scheduling step before windows start in exchange for predictable O(1) launch latency. |
| Out-of-order HTTP retries risked overwriting newer candidate edits | Attached client monotonic sequence counters to each question patch and rejected stale writes atomically; requires careful sequence reset handling only across approved device transfers. |
| Routing webcam/screen captures through Laravel exhausted PHP-FPM workers | Issued short-lived S3 pre-signed URLs from Laravel so React uploads media chunks directly; shifts bandwidth off app servers while requiring background manifest verification jobs. |
| Editing flawed questions mid-sitting corrupted active score keys | Enforced immutable question-revision snapshots per exam sitting with a separate post-hoc key-regrading override flow in Horizon, preventing live mutation hazards. |
Security & Exam Integrity
High-stakes exams require strong defense against both external leakage and internal tampering. Answer keys and scoring rubrics never leave the Laravel server in candidate payloads; React receives only rendered question prompts and neutral option identifiers mapped per candidate manifest.
Each active sitting binds to a single signed session token tracked in Redis. If an invigilator approves a hardware swap mid-exam, invalidating the prior token takes effect immediately on the next heartbeat. Every proctor intervention—such as granting five extra minutes after a fire alarm or flagging a room scan—appends an immutable record storing actor ID, timestamp, reason code, and hash chain pointer.
Concurrency & Operational Scale
To validate reliability ahead of peak exam windows, the backend isolates read-heavy catalog administration from write-heavy sitting endpoints via separate database connection pools and queue priorities. Laravel Horizon dedicates high-priority workers to live invigilation alerts and final submission sealing, deferring heavy PDF certificate generation and cohort psychometric aggregations to lower-priority queues.
Candidate heartbeats carry compact JSON diffs rather than full exam payloads, keeping MySQL row locks short and predictable even when thousands of candidates type essays concurrently.
Operational Outcomes
Moving certification delivery onto a purpose-built Laravel, React, and MySQL architecture stabilized high-stakes testing operations across scheduled cohorts:
- Zero-panic connectivity recovery: Candidates weather brief broadband dropouts without losing typed work or hitting premature session lockouts.
- Defensible examination governance: Chief examiners audit complete timestamped evidence trails—from manifest generation to double-blind marker reconciliation—in one interface.
- Predictable cohort launches: Pre-warmed manifests keep exam start times smooth regardless of simultaneous candidate check-ins.
- Faster post-exam turnaround: Automated objective grading and structured human marking queues eliminate manual spreadsheet collation ahead of result publication.