Uploads go straight to S3; the server only checks the result
The candidate page records with MediaRecorder and falls back to a file upload where Safari, iOS or a blocked camera gets in the way. The browser uploads directly to a private S3 bucket with a presigned PUT, or multipart above 50 MB, so video never passes through Next.js. MediaConvert transcodes it; an EventBridge rule fires a Lambda that runs ffprobe on the output and validates the real duration rather than trusting the browser. An hourly Lambda aborts abandoned multipart uploads and reconciles stale rows.
Reviewers get CloudFront signed playback that expires after 30 minutes, plus ratings and notes per candidate, and jobs move through a filled state when the role closes. The whole stack is one CDK app: Fargate behind an ALB and CloudFront, a single-AZ db.t4g.micro Postgres reachable only from the task and the processing Lambdas, VPC endpoints for S3 and Secrets Manager. Database access from outside stays closed except during a migration window.
Timeline
- MVP built
- Candidate experience redesigned
- Filled job lifecycle
- Fargate task resized down
Sources and method
Written from the project's code, documentation and commit history, reviewed in November 2026. Business figures come from me. Clips and screenshots are labelled with where they came from; none show customer data.
video-interview/README.mdvideo-interview/infra/app.tsgit log