Architecture
System Design and Components
Core Components
Main parts of the system architecture
Data Flow
How data moves through the system
Infrastructure
Hosting and deployment setup
Security
Authentication and data protection
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.
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