02 — Signature
How the RMS app handles a live order



● NEW_ORDER
Live alert

● Offline
Step 01
Staff pick a table
After login, the dashboard shows every table at a glance: green when it's free, red when it's taken.
Step 02
The order goes in once
Each order is sent with an idempotency key, so a double tap can't create a duplicate. The screen updates straight away and rolls back cleanly if the request fails.
Step 03
Other devices hear about it
NEW_ORDER, PAYMENT_CONFIRMED and ORDER_CANCELLED arrive over STOMP with JWT auth, a 10-second heartbeat and backoff reconnects, then show up as a local notification. Built and tested as practice scope.
Step 04
The connection drops
An offline banner tells staff the truth instead of pretending. The live pipeline sits behind a flag, so the app stays healthy without it.



● NEW_ORDER
Live alert

● Offline




















