Theatre System
Unified Festival Management Platform engineered for St. Markos Coptic Orthodox Church (Heliopolis) — Neiruz Festival 2026. High-concurrency box office ticketing, silent thermal printing, gate admission verification, and real-time stage voting synchronization.
Sole System Architect & Full-Stack Engineer — backend concurrency design, WebSocket state broadcasts, database indexing, ESC/POS hardware integration, and Docker packaging.
Overview
Managing a high-density, multi-day theatre festival (400 attendees per show, 9,200 tickets total) requires zero-downtime reliability without cloud reliance. Theatre System unifies Box Office sales, automated thermal ticket printing, gate barcode scanning, jury scorecards, spectator live voting, and auditorium projector feeds into one synchronized on-premise local area network deployment.
Key Architectural Capabilities
Sub-Second WebSocket Engine
Synchronizes remaining seat counts, gate admission logs, live spectator counters, and stage states across all connected terminals using native WebSockets (ws) with exponential backoff and randomized jitter reconnection.
Atomic Concurrency & Double-Booking Prevention
Box office seat allocations execute inside serialized PostgreSQL transactions using SELECT ... FOR UPDATE row-level locks on zones, eliminating race conditions when multiple cashiers issue tickets at the exact same millisecond.
Silent ESC/POS Thermal Printing
Automated, driverless thermal printing generates attendees' tickets with instant custom barcode encoding upon cashier confirmation, enabling frictionless gate flow without manual print dialogs.
Zero-Cloud Docker Compose Resilience
The entire platform is containerized with Docker Compose and runs completely offline on an isolated local venue switch. Automated local database persistence guarantees data integrity even during venue Wi-Fi brownouts.
High-Speed Database Performance Indexes
7 specialized PostgreSQL indexes accelerate per-show admissions, fast-path gate barcode lookups, spectator score aggregation, and operator session audit trails to achieve sub-millisecond query execution.
Split-UI Control Room & Stage Feeds
Features independent, reactive control interfaces for Box Office cashiers, Gate Ushers, Stage Coordinators, Official Jury Evaluators, and live Projector Displays with confetti audio chimes upon vote reveals.
Tech Stack
| Desktop & Server | Electron, Node.js & Express |
| Real-Time Sync | Native WebSockets (ws) with jittered reconnect |
| Database & Locking | PostgreSQL with serialized SELECT ... FOR UPDATE row locks |
| Deployment | Docker Compose (100% offline LAN) |
| Hardware Integration | ESC/POS silent thermal printing & barcode scanning |
| Frontend & Fallback | HTML5 / Modern JS / CSS + Python native fallback |