← Back to Work

Full product lifecycle: GPU media pipeline, payments, reliability

Swapzy

A face-swap video generator: pick a GIF, add a face, get a shareable clip. The GPU fleet, queue, and spend model were built to survive real traffic.

Role
Sole engineer, designer, and operator
Year
2026
Status
Retired
  • Python / FastAPI
  • React / Vite
  • FaceFusion + ComfyUI (GPU)
  • AWS EC2 GPU Auto Scaling + SQS
  • RDS PostgreSQL / ElastiCache
  • Cognito / WAF / CloudFront
  • Stripe
  • AWS CDK / GitHub Actions OIDC

7m 25s

RDS restore drill (recovery time)

2026-04-18 · Chaos drill against a 30-minute RTO target

Challenge

Face-swap video is generative media: each job needs a GPU, runs seconds to minutes, can fail, and costs real money per second of compute. Built naively, it burns budget idling or leaves users waiting on a cold queue. It had to feel instant to a first-time visitor and stay economically sane at near-zero traffic.

Process

The pipeline was fully asynchronous. An upload fired an S3 event to SQS, a GPU worker ran FaceFusion (ComfyUI was a second engine for stylized swaps), and CloudFront delivered the result. The API ran on a multi-AZ Auto Scaling Group. The Spot GPU fleet scaled on queue depth and kept at least one warm worker, so a new user’s first job never hit a cold start; I made that cost-versus-latency call with the math written down.

Security and reliability were first-class. GitHub Actions deployed via federated OIDC (no stored keys) and tag-scoped SSM. The runtime database user was DML-only, separate from the migration owner. An append-only, hash-chained audit log anchored hourly to S3 Object Lock in WORM mode. There were 21+ CloudWatch alarms, and a chaos-drill campaign I designed validated the system, including a database restore in 7 minutes 25 seconds against a 30-minute target. A Stripe-billed Pro tier and an admin-gated entitlement system were built and verified end-to-end on production.

Result

Ran as an audience-scoped soft launch (friends-and-family beta) at swapzy.co, closed to the public by choice. The generative pipeline, payments, and reliability engineering were built and proven in production. I retired it in October 2026; swapzy.co now shows a short retirement notice. It is the only portfolio project with a GPU generative-media workload at its core, with the architecture and economics that implies.