Why Background Processing for a Viral Video Vault
ViralVidVault tracks viral videos across 7 European regions. The main cron pipeline needs to be fast -- fetch, score, store. But secondary tasks like thumbnail quality checks, deep metadata enrichment, and stale link removal are too slow for the critical path. Celery lets us offload this work to background workers.
Celery Configuration
# celery_app.py from celery import Celery
app = Celery ( " viralvidvault " , broker = " redis://localhost:6379/0 " , backend = " redis://localhost:6379/1 " , )
app . conf .…