Build a Pipeline to Ingest and Process Video Conference Recordings
System DesignModel answerLast updated
Design a system that automatically captures video conference recordings from a third-party platform, transforms them into transcripts and analytics, and serves results reliably at scale.
You're building a B2B platform that automatically ingests video conference recordings from a third-party service (similar to Zoom or Teams) and processes them into actionable insights. Once a company administrator authorizes access to their organization's account, your system should capture every recorded session, generate transcripts with speaker attribution, and produce analytics like summaries and key topics.
What You Need to Design
Build the end-to-end architecture from notification receipt through processing to query serving. Your design must handle:
Reliable ingestion: The third-party platform sends webhooks when recordings finish, but these notifications may be delayed, duplicated, or lost entirely. The platform also provides REST APIs to list and download recordings, protected by rate limits.
Scalable processing: Raw video files need speech-to-text transcription (computationally expensive), followed by lighter-weight analysis steps. Processing must handle failures gracefully and support reprocessing the entire corpus when models improve.
Multi-tenant operations: Hundreds of customer organizations share the infrastructure. One customer's spike in meetings shouldn't delay others. Customer data must stay isolated, and deletion requests must purge all derived artifacts.
Scope and Assumptions
- Customers are organizations, not individual users; one integration per organization captures all its recordings
- The external platform requires OAuth credentials per customer and enforces undisclosed rate limits on both API calls and download bandwidth
- Processing stages: (1) speech-to-text with speaker diarization, (2) downstream analysis like summarization and topic extraction, (3) search indexing
- Real-time processing during live meetings is out of scope
- Typical meeting: 30-60 minutes, 100-500 MB video file
- Scale target: clarify expected number of customers, daily meeting volume, and SLA for results availability
Questions to Ask
Before diving in, clarify:
- Latency requirements: must results appear within minutes, hours, or next day?
- Volume expectations: customer count, meetings per day, distribution of meeting lengths
- Which processing outputs are required for initial launch versus future phases
- Compliance constraints: data residency, retention policies, recordings that must be excluded (e.g., privacy settings)
Three Parts to Address
Part 1 – Ingestion Layer: How do you reliably capture recordings despite unreliable notifications, respect rate limits, and store large files efficiently?
Part 2 – Processing Pipeline: How do you orchestrate multi-stage compute, schedule work fairly across customers, handle failures, and reprocess historical data when models change?
Part 3 – Storage and Serving: Where do raw files, transcripts, and analytics live? How do users query them? How do you enforce tenant isolation and execute deletion requests completely?
Hints
Hint 1
Think about the difference between detecting a recording exists versus actually fetching it – these can be separate stages with different failure modes
Hint 2
Idempotency keys and checkpoint state in persistent storage prevent duplicate processing when retries happen
Hint 3
For fair scheduling across customers, consider how queuing mechanisms can prevent one tenant's backlog from blocking others
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
A strong answer demonstrates capacity planning, handles partial failures with idempotency, and treats multi-tenancy and compliance as architectural requirements rather than afterthoughts.
Back-of-Envelope Sizing
Start with rough numbers to guide technology choices:
- Assume 500 customers, 50,000 meetings/day, average 45 minutes each
- Video storage: 300 MB average × 50K = 15 TB/day raw, 5.4 PB/year
- Transcription compute: ~1 minute of processing per 1 minute of audio with GPU acceleration, so ~37,500 GPU-hours/day
- Text storage: transcripts compress well, ~1 MB per meeting = 50 GB/day
These volumes demand object storage for media, distributed task queues, and autoscaling compute.
Part 1: Ingestion Architecture
Webhook receiver: Expose an HTTPS endpoint that receives notifications from the external platform. Immediately validate the signature, extract the recording ID and customer identifier, write a record to a persistent queue (SQS, Kafka, Pub/Sub), and return 200. This fast acknowledgment prevents timeout-based retries from piling up.
Idempotency layer: Use the recording ID as a deduplication key. Before queuing, check if this recording already exists in your metadata store. If it does, acknowledge but don't queue duplicate work. This handles double-sent webhooks.
Fetcher workers: Pull from the ingestion queue. For each recording, call the platform API to retrieve metadata (duration, participants, timestamp), then stream the video file directly to object storage (S3, GCS) in chunks to avoid memory limits. Store the object key and metadata in a PostgreSQL or DynamoDB table with status = "fetched".
Rate limiting: Track API calls and bandwidth per customer credential using a token-bucket or leaky-bucket algorithm. When approaching limits, back off exponentially. If credentials are revoked or expired, mark the customer's pipeline as paused and alert the customer to reauthorize.
Reconciliation job: Webhooks are unreliable. Run a periodic batch job (every 4-6 hours) that lists recent meetings via the platform API and cross-checks against your metadata store. Queue any missing recordings for fetching. This catches notifications that never arrived.
Failure handling: Fetcher failures go to a retry queue with exponential backoff (immediate, 1 min, 10 min, 1 hour). After N attempts, move to a dead-letter queue for manual investigation. Partial downloads are discarded and retried from scratch since storage is cheap and complexity isn't worth it.
Part 2: Processing Pipeline
Stage 1 – Transcription: Workers poll a "ready-for-transcription" queue. Each worker pulls the video from object storage, runs it through a speech-to-text model (Whisper, Deepgram API, or custom), produces a JSON transcript with timestamps and speaker labels, and writes it back to object storage. Update the metadata record: status = "transcribed", transcript_version = "v3", transcript_path = "s3://...". Processing is idempotent: if the transcript already exists for this version, skip it.
Compute: Use GPU instances (P3, A100) in an autoscaling group. Monitor queue depth and scale up when depth exceeds a threshold, scale down during idle periods. Spot instances reduce costs by 70% but require graceful handling of interruptions—checkpoint progress and requeue interrupted jobs.
Stage 2 – Analysis: Lighter compute. Once transcription finishes, enqueue for summarization and topic extraction. These steps run on CPU instances, read the transcript, call an LLM or rule-based analyzer, and write structured outputs (summaries, topics, action items) to a database.
Stage 3 – Indexing: Push transcript chunks into a search engine (Elasticsearch, Algolia) for keyword and semantic search. Include tenant ID and meeting ID as filters for access control.
Fair scheduling: Use separate queues per customer or assign priority weights. A simple approach: hash customer IDs to Q queues, workers round-robin across queues. This prevents one customer's 10,000-meeting backlog from starving a smaller customer's 10 meetings.
Reprocessing for model upgrades: When deploying a new transcription model (v4), enqueue all historical recordings with transcript_version < v4 for reprocessing. Use a separate low-priority queue so new recordings aren't delayed. Mark reprocessed transcripts with the new version and timestamp, keeping old versions for auditing.
Partial results: If transcription succeeds but analysis fails, the transcript is still available to users. Downstream failures retry independently. Avoid cascading failures by checkpointing intermediate outputs.
Part 3: Storage and Serving
Storage tiers:
- Raw video: S3 Glacier or cold storage after 30 days, since it's rarely accessed after initial processing
- Transcripts and metadata: Hot storage (S3 Standard, PostgreSQL for structured queries)
- Search indexes: Elasticsearch or equivalent, replicated for availability
Tenant isolation: Every database row includes customer_id. Every API query filters by the authenticated user's customer. Object storage uses prefixed paths like s3://bucket/customer-{id}/recording-{id}.mp4. IAM policies or signed URLs prevent cross-tenant access.
Deletion: When a customer requests deletion (GDPR, churn), mark the customer as deleted, then:
- Delete all recordings from object storage
- Delete metadata rows from the database
- Purge documents from the search index
- Scrub references from logs (or filter at query time)
Use a background worker to handle deletion asynchronously. Confirm completion before finalizing the customer account closure.
Serving layer: REST or GraphQL API authenticated via JWT or OAuth. Queries like "list meetings" hit the database with customer_id filters. Transcript text is fetched from object storage on demand (with CDN caching). Search queries hit Elasticsearch with tenant filters enforced at the query level, not trust-the-client.
Monitoring: Track metrics per stage:
- Ingestion: webhook latency, fetch queue depth, API rate-limit errors
- Processing: transcription queue depth, job success/failure rate, average processing time, GPU utilization
- Serving: API latency, search query volume, cache hit rate
Cost visibility: Tag cloud resources by customer and pipeline stage. Track per-customer compute usage to identify outliers (e.g., a customer with unusually long meetings or high volume).
Common Mistakes to Avoid
- Blocking webhook handlers: Long operations in the webhook path cause timeouts and duplicate retries. Acknowledge fast, queue the work.
- Ignoring idempotency: Without deduplication keys, retries create duplicate transcripts and waste compute.
- Forgetting reconciliation: Webhooks are lossy. Periodic API polling catches gaps.
- Unfair scheduling: Naïve FIFO queues let one customer monopolize resources.
- Incomplete deletion: Derived data in search indexes or caches must also be purged.
This design balances reliability, cost, and compliance at scale.