Aller au contenu principal

Architecture Overview

Reactor is built on modern cloud-native infrastructure designed for scalability, reliability, and performance.

Core Components

Cloudflare Infrastructure

  • Cloudflare Workers - Serverless backend APIs (Hono framework) for billing, auth, and server management
  • Neon PostgreSQL - Serverless database with Hyperdrive connection pooling
  • Cloudflare R2 - Object storage for game server backups
  • Azure Key Vault - Secure secrets management

Kubernetes on Hetzner

  • K3s Clusters - Lightweight Kubernetes for game server orchestration
  • Custom Operators - GameServer CRD for declarative server management
  • NodePort Services - Direct player connections to game servers

Frontend Applications

  • reactor-web - Customer-facing website (Astro + React)
  • reactor-admin - Admin dashboard (Astro + React)
  • reactor-docusaurus - Documentation wiki (Docusaurus)

Data Flow

Player → DNS → K8s NodePort → Game Pod → Player

Website → Cloudflare Workers → Neon PostgreSQL

Billing → Mollie → Webhook → Subscription Active

Security

  • JWT Authentication - HMAC-SHA256 signed tokens for user sessions
  • Cloudflare Zero Trust - Access policies for admin/dev environments
  • Secret Management - Azure Key Vault for credentials