Build a Self-Hosted CDN with OpenResty Edge

Description

Step-by-step guide to building a self-hosted CDN using OpenResty Edge (LuaJIT edge gateway), from the OpenResty core team.

Resource details

Category path
Infrastructure & DeliveryEdge Computing & Caching Solutions
Classification
Not yet classified

Build a Self-Hosted CDN with OpenResty Edge is cataloged in Infrastructure & Delivery and Edge Computing & Caching Solutions.

URL

Related resources

  • gimmeSelf-hosted CDN written in Go, two-level cache (Redis + S3 backend), auto Cache-Control headers, sits behind Nginx/Varnish/Caddy.
  • HR-Cache (code repo)Companion code repository for the HR-Cache learning-based edge caching paper.
  • HR-Cache: Learning-Based Caching for Edge Content DeliveryAcademic paper proposing a LightGBM GBDT-based learned cache-eviction model for edge content delivery, with companion code.
  • Coffee: Cost-Effective Edge Caching for 360° Live VideoAcademic paper on predictive tile-prefetch edge caching for 360-degree live video streaming, achieving 76% backhaul traffic reduction.
  • cXnExtensible open-source CDN with classic nginx→varnish→S3 edge cache architecture, MIT licensed.
  • EdgeCDN-XKubernetes-native GitOps CDN with EdgeOTT-X for full ingest-to-playout OTT streaming, SR-IOV support, in production at Slovak Telekom (3Tbp…
  • ML-Driven Open-Source Framework for QoE in Multimedia NetworksEnd-to-end ML framework predicting and optimizing QoE from network conditions, based on ITU-T P.1203, code released open source.
  • Survive CDN Failures with Redundant StreamsTechnical deep-dive on client-side multi-CDN failover pattern using redundant streams with HLS.js.
  • video-transcode-queueReference architecture for a video upload and transcode pipeline running on Kubernetes with a job queue.
  • OpencastOpen-source platform for capturing, processing, managing and distributing academic video, with its own storage and distribution architectur…