Last updated
03.07.2025 at 17:42

Architecture

System Design and Components

System Overview

Lázně Pramen uses a modern microservices architecture with the following key components:

  • Supabase Edge FunctionsDeno runtime
  • Realtimevia Supabase channel over WebSocket
  • Edge cachingCloudflare CDN

Infrastructure Setup

The system is deployed across multiple environments:

  • DevelopmentLocal Docker setup
  • TestingVercel Preview Deployments
  • ProductionSupabase with auto-scaling

Data Flow

The application follows a clean architecture pattern:

  • Supabase Edge FunctionsDeno runtime
  • Realtimevia Supabase channel (WebSocket)
  • Edge cachingCloudflare CDN

Security Measures

Security is implemented at multiple layers:

  • EncryptionEnd-to-end encryption for sensitive data
  • Access ControlRole-Based Access Control (RBAC)
  • Audits & UpdatesRegular security audits and updates
  • ComplianceGDPR-compliant

Backend Stack

Core technologies and infrastructure components powering the Lázně Pramen platform.

Backend Stack Architecture

Database & Functions

Modern serverless database with edge computing capabilities.

  • Database Supabase Postgres
  • Edge Functions Deno runtime

Payment Processing

Secure payment handling with webhook integration.

  • Payment Gateway Stripe
  • Integration Webhooks → Payments service

Communication

Transactional email and notification services.

  • Email Service SendGrid
  • Email Type Transactional e-mails

Data Backup

Automated backup and disaster recovery solutions.

  • Backup Tool pg_dump
  • Storage AWS S3