Infrastructure
Designing for resilience, security, and scale.
This section documents how we deploy and operate the DineHub restaurant ordering system across multiple cloud regions.
At a Glance
| Aspect | Our Solution |
|---|---|
| Compute | AWS EC2 with NixOS |
| Networking | Tailscale mesh (self-hosted via Headscale) |
| Database | Citus (distributed PostgreSQL) |
| Ingress | nginx reverse proxy |
| Deployment | NixOS modules + deploy-rs |
Documentation
- System Architecture — Complete system design with diagrams and component overview
- Deployment Process — How we deploy, rollback, and manage infrastructure changes
- Networking — Zero-trust mesh networking with Tailscale
- Database — Distributed PostgreSQL with Citus for horizontal scaling
- Security — Defense in depth across all layers