High-Throughput Hospitality Architecture
CafeOS was designed to solve peak-hour order congestion, kitchen ticket bottlenecks, and table allocation delays across multi-floor hospitality venues. Built on Next.js 16, PostgreSQL, and Redis, it delivers real-time order processing with zero client polling overhead.
Subsystem Specifications
SUB-01 · POS / ORDERING
Optimistic QR table ordering backed by client-side IndexedDB persistence. Orders queue locally if connection drops and sync automatically upon reconnection.
SUB-02 · KDS STREAM
Kitchen Display System powered by Server-Sent Events (SSE). Replaces polling loops with low-latency HTTP streams targeting active kitchen displays.
SUB-04 · PAYMENT SAGA
After eSewa or Khalti payment gateway callbacks succeed, five downstream operations (receipt dispatch, inventory update, loyalty points, KDS notify, audit log) execute as retryable Inngest steps. No side effects run inside the HTTP callback handler.