Docs / BananaQueue / Queue rules
Queue rules
How BananaQueue numbers tickets, decides who is next, mixes walk-ins with appointments, and estimates waiting time.
BananaQueue's rules run inside the database, in one place, for every screen: the web app, the iPhone app, the TV and any future kiosk. A phone can't skip the line, and two counters can never call the same person.
Ticket numbers#
- Walk-ins get Q numbers and appointments get A numbers, for example
Q101andA101. A service can add its own prefix, such asLAB-Q101. - Numbering restarts every day, per service, in the business's own time zone (Manila by default). The starting number is configurable.
- Numbers never repeat and never skip, even when many people join at the same moment. A request that is refused (for example because the day is full) doesn't use up a number.
Who is called next#
When a counter presses Call next, BananaQueue looks at two candidates:
- the earliest checked-in appointment whose time has come (allowing a short grace period), and
- the earliest walk-in whose turn has opened.
Appointments go first, but not forever. Each service has a setting, maximum appointments in a row. Once that many appointments have been called back to back and a walk-in is waiting, the walk-in goes next. Setting it to 0 gives appointments strict priority.
Within each kind, it is first come, first served. The count is kept per service, so the balance holds across all of that service's counters.
Walk-in release windows#
Busy services can spread walk-ins over the day instead of letting a crowd form at opening time. With a window of 15, 30 or 60 minutes and a number of walk-ins per window, each new walk-in joins the earliest window that still has room. Their ticket says "Your turn opens at 10:30", and counters don't call them before then. A window of 0 turns this off.
Daily limits#
Each service can limit walk-ins per day and appointments per day separately. Each appointment slot holds as many bookings as the slot capacity, or the number of active counters by default. These limits are checked at the exact moment of booking, so two people can't both take the last slot.
Opening hours#
Each service has a daily opening and closing time, in the branch's time zone. Outside those hours, customers see when the service opens next instead of a ticket button.
Estimated wait#
Shown once at least five tickets for the service have been completed that day:
estimated wait = (people ahead + 1) × average service time today ÷ counters active in the last two hours
It is rounded to minutes and always labelled as an estimate. It is plain arithmetic, not AI.
Counters and cashiers#
Counters and cashier windows work the same way. A service can have both, for example consultation counters and a billing cashier, each with staff assigned to it. A counter holds at most one customer at a time.
Fair use#
To stop one device from flooding a queue, the public actions (taking a number, booking, cancelling, checking in) have a per-device limit, 30 tickets per 10 minutes per service by default.