Skip to content
Waiting Room
Visit Waiting Room on GitHub
Set theme to dark (⇧+D)

Queueing method

The queueing method determines the order that visitors exit an active waiting room and reach your application.

First In First Out (FIFO)

Your waiting room orders visitors according to when they entered the waiting room.

FIFO diagram

Technically, each user receives a cookie that contains a timestamp of when their request first hit an actively queueing waiting room. Cloudflare uses that timestamp to order visitors and provide the estimated wait time.

Use this method when you want to reward visitors who get in the queue first and wait longer, such as for sneaker drops, memorabilia sales, etc.


When your application has open spots, your waiting room chooses visitors at random to exit the waiting room and enter your application.

Random queueing method diagram

Use this method when you want to distribute products or services more equitably. Earlier users have a better chance of exiting the waiting room before the estimated wait time because they have more chances to be selected.

Changing queueing methods

Though you can change your queueing method, it may affect users if your waiting room is actively queueing:

  • From FIFO to Random: Users will no longer be ordered based on their cookie timestamp, which may affect the displayed wait time.
  • From Random to FIFO: Users will be ordered based on their cookie timestamp, meaning any new users move to the end of the FIFO queue.