Skip to content

DmytroFrame/c11-backend

Repository files navigation

C11 Backend - Modern Media Content Platform

A cloud-native media platform built for performance, scalability, and developer experience. This platform handles media processing, storage, and delivery with modern infrastructure and cutting-edge technologies.

Cloud-Native Focus

We've strategically migrated our platform from AWS to Cloudflare Workers and Cloudflare R2 to achieve significant cost savings and performance improvements. This migration eliminates egress fees that were previously incurred when serving content from S3 to EC2 instances, providing a more cost-effective and scalable solution while maintaining the same level of reliability.

Image Pipeline

Our image processing pipeline leverages libvips for efficient image manipulation and AVIF compression to deliver optimized media assets. This combination reduces bandwidth usage by up to 50% while maintaining high visual quality, resulting in faster load times and improved user experience.

Developer Experience (DX)

We provide a complete Docker Compose environment that simulates the entire cloud stack locally, including:

  • MinIO for S3-compatible storage
  • Redis for caching
  • PostgreSQL for database operations
  • Localstack for AWS service emulation

This setup enables developers to run and test the complete platform locally without requiring cloud infrastructure, significantly improving development speed and reducing dependency on external services.

Scalability

The platform transitions from traditional NestJS monoliths to a serverless architecture, leveraging Cloudflare Workers for compute and CDN-optimized content delivery. This approach provides automatic scaling, reduced latency, and improved resource utilization while maintaining the same feature set.