What architecure design is used to create a virtual queue?
A virtual queue, virtual waiting room or a virtual line can be described as:
An online queue system which redirects excess end-users to a virtual waiting room environment and passes the end-users back to the website or app in a first-come, first-served order. Usuage could be to prevent website overload during peak times.
For example, in the context of ticketing web application -
- How do virtual queue instances integrate with ticket processing services?
- How are virtual queues maintained? For example, when clients drop out of the queue or requests are being processed
- How would virtual queues know when a service is under load and when to forward the request when they are not?
I understood a virtual queue to sit between the client and service monitorting all traffic to a specified service path. If the service is not overloaded forward the request else place request in the queue.
When a user is finished i.e through some action such as ticket purchase a new place is made available in the virtual queue.
If the service reads from the virtual queue how can it reposnd to the queued request, how could this be implemented?
How does the request response loop look in terms if a queued request a polling client and the service?