Building a Video Processing Pipeline with Laravel Queues
summary
Builds a durable Laravel pipeline for video uploads using Mux robots and an Expo frontend called RoboTube. Uses firstOrCreate on the webhook event ID to dedupe webhooks, queue the database ID not the payload so workers reload state, and start remote AI jobs (summarization, chapters, key moments, translations) by recording remote job IDs. Enforces moderation via a state machine not a chain, implements batches are a database row with a counter, handles rate limits by use retryUntil for rate-limited work and sends failures to a final state so users never see an eternal spinner.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 1:24Video consumption stats
- 3:11Why FFmpeg matters
- 5:19Video processing challenges
- 6:20Demo of RoboTube app
- 7:11Webhook workflow explained
- 9:38Queue job architecture
- 11:23Webhook controller deep dive
- 13:10Remote job handling
- 14:13Moderation first rule
- 15:57Parallel job batches
- 17:25Workload prioritization
- 18:29Failure handling strategies
- 20:16Duplicate job prevention
- 21:39Rate limit solutions
- 22:45Concurrency locks
- 23:28Watchdog for captions
- 24:30Webhook reconciliation
- 25:36Queue benefits summary
- 26:18Q&A with speaker
