snug’s hacking guide

This guide is designed for developers who want to extend or contribute to snug.

Overview

snug is designed as a distributed system with several key components:

Central Components

  • mom: The central coordination service that manages content derivations, media processing, and tenant configurations
  • database: Stores metadata, configuration, and user information

Edge Components

  • cub: Edge node instances that serve content to end users, collectively forming the CDN
    • Cubs are points of presence deployed globally
    • They handle content delivery for static assets and media
    • Together, all cubs form the content delivery network

Service Communication

Components communicate via:

  • HTTP APIs for configuration and management
  • WebSockets for real-time updates and notifications

The detailed architecture documentation will be expanded in future updates.