HomeCase studiesFault-Tolerant Online Examination and Remote Proctoring System...

Case study · London, United Kingdom

Fault-Tolerant Online Examination and Remote Proctoring System for High-Stakes Assessments

Remote Proctoring & Certification Testing

High-stakes professional certifications cannot tolerate lost answers during brief Wi-Fi drops, server-clock drift across time zones, or database lock contention when thousands of candidates launch an exam window together. We engineered an online examination and remote proctoring platform in Laravel, React, and MySQL built around server-authoritative timers, offline-resilient answer buffering, and verifiable proctoring audit trails. Candidates experience a calm, accessible React testing console while Laravel queues process multi-format scoring, evidence indexing, and psychometric reporting cleanly.

Industry
Remote Proctoring & Certification Testing
Solution
A high-concurrency assessment delivery, proctoring telemetry, and psychometric grading platform powered by a React testing client, Laravel APIs, and transactional MySQL storage.
Platforms
Web & API
Stack
Laravel · PHP · React · TypeScript · MySQL · Redis
Location
London, United Kingdom · delivered remotely
Role
Engineering, with the team behind for mobile and QA

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.

01 — Questions

asked about this kind of project

What happens if a candidate loses internet connectivity mid-exam?

The React test runner caches every keystroke and selection immediately into browser IndexedDB alongside a monotonically increasing sequence number. When connectivity returns, it flushes queued deltas idempotently to Laravel; if the exam timer expires offline, the candidate can download a signed encrypted recovery bundle for verified upload.

How do you prevent browser clock manipulation from extending an exam's duration?

Client timers are strictly cosmetic. Laravel records the authoritative `started_at` and `expires_at` timestamps in UTC on MySQL, factoring in approved candidate time accommodations, and rejects any answer mutation arriving after server-side expiration plus a narrow network grace buffer.

Why choose MySQL with InnoDB over a document database for exam item banks and candidate responses?

Certification audits require strict relational integrity between exam blueprint versions, randomized question deliveries, candidate accommodations, and final grade ledgers. InnoDB transactions and composite indexes ensure an answer upsert and final submission transition atomically without orphaned or duplicate scores.

How does the platform handle thousands of candidates clicking 'Start Exam' at the exact same minute?

Exam blueprints and randomized question payloads are pre-warmed in Redis prior to scheduled sitting windows. Starting an exam claims a pre-generated sitting manifest rather than running heavy multi-table randomization queries against MySQL during the first-minute rush.

How are subjective essay or case-study questions graded fairly alongside automated MCQs?

Objective items score deterministically inside Horizon jobs upon submission, while constructed-response answers enter a double-blind marking queue. Examiners grade anonymized scripts against structured rubrics, and discrepancies beyond a configured threshold trigger automatic senior-moderator adjudication.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.