Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

AspectOur Solution
ComputeAWS EC2 with NixOS
NetworkingTailscale mesh (self-hosted via Headscale)
DatabaseCitus (distributed PostgreSQL)
Ingressnginx reverse proxy
DeploymentNixOS 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