All case studies
A food-discovery product team · Media infrastructure / SaaS backend

HLS Media Conversion Microservice

A Laravel media pipeline that ingests uploads or remote URLs, generates multi-variant HLS and thumbnails, queues work via Redis/Horizon, stores assets on disk or DigitalOcean Spaces, and optionally syncs status to Firebase/Firestore.

Industry
Media infrastructure / SaaS backend

Client / Business Context

Built as supporting infrastructure for a consumer media product (Savrli). The engagement is published as a technical case study without inventing traffic metrics.

Problem

Apps needed a reliable way to take uploaded or remote videos (and images), turn videos into streamable HLS with thumbnails, store assets on CDN-ready storage, and keep related records in sync — without putting heavy ffmpeg work on the main product API.

Solution

A Laravel microservice with authenticated convert/upload APIs: ingest by URL or multipart file, generate multi-variant HLS and thumbnails (ffmpeg / PHP GD), queue long-running jobs via Redis/Horizon, store originals and outputs on local disk or DigitalOcean Spaces with CDN URLs, and optionally merge status into Firebase/Firestore by reference ID. Config switches cover sync vs async processing and Firebase on/off for local and production.

Key Features

  • Authenticated convert/upload APIs
  • Ingest by URL or multipart upload
  • Multi-variant HLS + thumbnail generation
  • Redis/Horizon queues for long-running jobs
  • Local disk or DigitalOcean Spaces with CDN URLs
  • Optional Firebase/Firestore status merge by reference ID
  • Idempotent pipeline via reference_id reuse

Problem

Product APIs needed HLS streaming, thumbnails, and CDN storage for uploads and remote media without running heavy ffmpeg work on the main app.

Solution

We built a Laravel microservice with convert/upload APIs, ffmpeg HLS + thumbnails, Redis/Horizon queues, Spaces/CDN storage, and optional Firebase status sync — with sync/async and Firebase toggles.

Results

Product apps get a single, idempotent media pipeline (reference_id reuse) that returns job status plus original, thumbnail, and HLS URLs without owning transcoding, storage layout, or Firebase write logic.

Proof note

This HLS microservice: the source record did not include measurable outcomes or a client testimonial. Text under Results is copied from the engagement notes and is not presented as a verified KPI.

Tech Stack

LaravelffmpegRedisHorizonDigitalOcean SpacesFirebase

Have a project that needs rescuing or shipping?

Tell us what's going on and we'll come back with a clear plan.