FIFO in service queues: when it works and when you need to adapt
First-in, first-out sounds obvious for any service line. But clinics and public offices find that pure FIFO fails with legally mandated priority patients, slow-appointment convoy effects, and mixed walk-in and scheduled flows.
Published on June 7, 2026
In queue management, FIFO — First In, First Out — is the obvious starting point. The logic is intuitive and feels fair: whoever arrived first gets served first, no favouritism, no debate. In many settings, that is exactly the right rule. A single-chair barbershop, a pharmacy dispensing counter, a document collection window — FIFO works cleanly in all of these without additional complexity. The challenge arises when the context grows more demanding: some patients are legally entitled to preferential service, some appointments take five minutes while others take forty-five, and walk-in patients queue alongside those who scheduled days in advance. In those scenarios, applying pure FIFO can violate the law, stall the flow, and generate frustration that erodes patient trust over time. This guide examines when FIFO is the right discipline for your operation, when it needs adjustment, and how digital queue management systems make any approach fully transparent and auditable for staff and patients alike.
1. What FIFO is and why it seems the obvious choice
FIFO — First In, First Out — originates in operations management and inventory theory, but applies directly to in-person service: the first person to join the queue is the first to be served. The discipline emerged as a response to arbitrariness — in settings without an explicit rule, someone who arrives early can end up waiting longer than a later arrival due to favouritism or reception oversight. FIFO eliminates that risk: the criterion is objective, verifiable, and impersonal. Anyone looking at the queue understands the order without needing an explanation.
In practice, most establishments already use FIFO intuitively: the bakery, the pharmacy, the boarding gate. The challenge begins when a manager wants to make it explicit — put it into a system, automate call-outs, generate reports. That is when the limitations of pure FIFO surface. The system needs rules for exceptions: the patient who arrived first but is 80 years old, the appointment that ran three times over schedule, the scheduled patient arriving on time who finds walk-ins ahead in the queue.
2. When FIFO works well: favourable contexts
Pure FIFO performs best when three conditions are simultaneously present: homogeneous service times (less than 30% variation between the shortest and longest appointments), no legally mandated priority categories under Brazilian Law 10.048, and demand distributed evenly throughout the day without concentrated peaks exceeding 30 minutes of waiting. When all three conditions coexist, FIFO delivers the lowest achievable average wait time with no additional operational complexity.
Real-world examples where FIFO works without adjustment: a notary registry counter for simple certificates (average service time 8 to 12 minutes per citizen, no prevalent priority category), a laboratory results collection window (2 to 4 minutes, standardised procedure), a gym reception for daily check-in (15 seconds per member). In all of these cases, pure FIFO delivers fairness and efficiency without added complexity. Any attempt to introduce priority logic to these queues would add friction without any real benefit.
3. Where pure FIFO breaks: priority patients and Brazilian Law 10.048
Brazilian Federal Law 10.048/2000 mandates preferential service for patients over 60, pregnant women, nursing mothers, people with infants in arms, people with disabilities, and obese individuals. Any establishment serving the public must comply — this includes clinics, laboratories, pharmacies, public agencies, and any service with a physical queue. In a setting running pure FIFO with a single queue line, systematic compliance is practically impossible: reception must visually identify each priority patient, interrupt the normal flow, and insert them ahead — a process prone to error, oversight, and conflict with other waiting patients.
The standard solution is a parallel queue: the system maintains two independent lines — general and priority — each with its own internal FIFO. Whenever someone is in the priority queue, they are called before anyone in the general queue. With a digital queue system, the patient selects their category at QR code check-in and the priority rule applies automatically, without relying on reception's judgement. The full record is available in an auditable report — which also addresses the risk of consumer agency complaints or state-level fines.
4. The convoy effect: when long appointments block short ones
Consider a clinic running pure FIFO where patients arrive in this order: a quick follow-up visit (5 minutes), followed by a new patient with a complex complaint (45 minutes), followed by three more quick appointments (5 minutes each). Under pure FIFO, the three fast patients wait behind the long appointment — result: an average wait of 50 minutes for patients who should have waited 10. In queuing theory, this is the convoy effect: fast service is held up behind slow service, inflating the average wait for the entire queue without increasing patient volume.
The solution for high service-time variability is segmentation by type: one queue for follow-up consultations, another for first visits, another for procedures. Each queue runs its own internal FIFO, and each professional serves a specific type. In laboratories this already happens naturally — the specimen collection queue is separate from the results collection queue. In clinics, it requires a check-in step that identifies the appointment type, whether at reception or via QR code. Operations that implement this segmentation correctly report average wait time reductions of 20% to 40% without adding capacity.
5. FIFO and scheduling: how the two logics coexist in practice
In services combining scheduled appointments with walk-ins — which includes most clinics and many public agencies — FIFO requires one additional rule: a patient with a confirmed appointment has priority over a walk-in within the same time window. Within the group of scheduled patients sharing a window, FIFO applies (first to arrive within the scheduled slot is first called). Among walk-ins, FIFO applies by check-in order. But a walk-in should never overtake a scheduled patient who arrived on time, regardless of who completed their digital check-in first.
This hybrid model sounds complex, but it is precisely what digital queue systems implement automatically and transparently. The patient checks in via QR code, the system identifies whether they are scheduled or a walk-in and which time window applies, and positions them in the queue correctly. Reception sees a unified call panel with the order already resolved — no manual decisions required about who goes next. The full log records the timestamp of every check-in and every call, making the process auditable in the event of a complaint.
6. Implementing FIFO with full traceability in a digital queue
The main problem with paper-based FIFO is the absence of traceability. A physical ticket shows a number, but records nothing about the exact entry time, who called the patient, how long the appointment took, or whether the sequence was skipped. Without this data, the manager cannot know whether FIFO is actually being respected — and patients who notice anomalies in the call order have no way to verify. In high-turnover operations or those with large teams, this creates chronic mistrust and point-in-time complaints that are impossible to investigate after the fact.
With a QR code-based digital queue, the entry timestamp is recorded automatically at check-in. The system determines call order based on the configured rules — pure FIFO, FIFO with priority lanes, FIFO segmented by appointment type — and the call panel reflects that order without reception intervention. If one appointment runs long and creates a delay, the system recalculates and notifies upcoming patients via WhatsApp. In the event of an audit, the report displays every entry, every call, and every deviation — complete traceability at no additional operational cost.
FIFO is fair when applied to the right context. In simple queues with homogeneous service times and no legally mandated priority categories, it is the best possible discipline — straightforward to understand, straightforward to implement, and straightforward to audit. When the context is more complex — priority laws apply, service time varies significantly, or scheduled patients mix with walk-ins — FIFO needs additional layers: parallel queues, type segmentation, and precedence rules between scheduled and unscheduled patients. The good news is that modern digital queue systems implement all of these variations transparently, without relying on manual reception decisions. The result is a queue that still feels simple to those waiting — but underneath is auditable, fair, and adapted to the actual complexity of the operation.