Backend & systems · CASE STUDY

QueueFlow

Queue and service desk system with instant updates across service stations, kiosks and public displays.

The challenge

Synchronize ticket calls across screens without requiring reloads or mixing operator permissions.

The solution

Java/Spring Boot API, WebSocket communication with STOMP/SockJS and a React interface. Administrative, operational and public areas are separated.

Main features

  • Service counters, ticket issuance at kiosks and calls on attendant screens.
  • Administration dashboard with operational metrics and configuration.
  • Public display updated through WebSocket events.

Architecture

React and TypeScript frontend, Java 21 and Spring Boot backend, PostgreSQL persistence with Flyway, JWT authentication and WebSocket communication.

  1. React / kiosk / display
  2. REST + WebSocket
  3. Spring Boot
  4. PostgreSQL

Decisions and lessons learned

  • WebSocket events keep displays updated, while REST handles conventional workflows.
  • Distinct roles govern access to configuration, service operations and public pages.
  • Database migrations and end-to-end tests improve reproducibility.

Scope and limitations

The interface and API share the same origin. Kiosks and displays do not collect customers' personal data.

Availability

Source code
Public
Application
Sign-in required
Case study
Available
Status
Published

Context and problem

At service counters, customers wait without knowing when they will be called, and attendants call tickets from separate screens. QueueFlow joins kiosk, counter, dashboard and display into one queue that everyone sees updated at the same time.

How it works

  1. Kiosk issues the ticket
  2. API stores it in the queue
  3. Attendant calls it at the counter
  4. STOMP event over WebSocket
  5. Public display updates

Business rules

  • Three profiles: ADMIN configures operations, ATTENDANT serves, and kiosk and display routes are public.
  • The administrator account is created by an internal backend bootstrap, with no public credential.
  • The ticket-calling policy is covered by backend tests.

Technical challenges and solutions

  • Challenge: Keeping several screens in sync without reloading. Solution: WebSocket with STOMP and SockJS for events, and REST for conventional flows.
  • Challenge: Not mixing operator, administrator and public permissions. Solution: Role-based authorization with JWT on the backend and public routes limited to kiosk and display.
  • Challenge: Publishing interface and API in a simple, consistent way. Solution: Per the README, interface and API are served from the same origin on Azure App Service.

Security and privacy

  • Passwords stored only as hashes, and a mandatory JWT secret in the production profile.
  • Kiosk and display are public by design and collect no personal data from people being served.
  • Terms of Use and Privacy Policy are reachable from the login page.

Tests and evidence

  • Backend integration tests and ticket-calling policy tests, run with ./mvnw test in CI on every push.
  • Frontend tests with Vitest and Testing Library (API errors, status labels and login). The repository screenshots come from the E2E suite.

Lessons learned

  • Real time calls for an event design, not just endpoints: deciding which screens listen to which events simplified the rest.
  • Flyway migrations and E2E tests make the demo reproducible.

Current status

Hosting as documented in the repository: published on Azure App Service with managed PostgreSQL (Aiven). Demo data may be reset.

Documented evidence

  • Documented screenshots generated by the E2E suite
  • Flyway migrations and role-based authentication
  • Service operator demo account documented in the README
Interface screenshot from QueueFlow.
Interface screenshot from QueueFlow.
Interface screenshot from QueueFlow.