0

What architecture design is used to create a virtual queue?

A virtual queue, virtual waiting room, or virtual line can be described as:

An online queue system that 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. Usage could be to prevent website overload during peak times.

An example would be software like Queue-it or netacea

For example, in the context of ticketing web application -

  1. How do virtual queue instances integrate with ticket processing services?
  2. How are virtual queues maintained? For example, when clients drop out of the queue or requests are being processed
  3. How would virtual queues know when a service is under load and when to forward the request when they are not?

[UPDATE]

I understood a virtual queue to sit between the client and service monitoring 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 respond to the queued request, how could this be implemented?

How does the request-response loop look in terms of a queued request a polling client and the service?

3
  • Queue-it is just an example of a virtual queue, it could be any virtual queue
    – clD
    Dec 9, 2018 at 23:55
  • 1
    I applaud that you're trying to edit the question to fix the problems, but they remain. I can't tell if you know what a Queue is, what a Virtual Queue is, why you think they need maintenance when a client drops out, or why they should care about service load. You seem to have something in mind that you aren't communicating very clearly. We support questions that are focused and objectively answerable. Please try editing again. Dec 10, 2018 at 0:16
  • Okay I have added a definition of virtual queue to be more specific
    – clD
    Dec 10, 2018 at 0:34

1 Answer 1

1

1 How do virtual queue instances integrate with ticket processing services?

The same way users integrate with ticket processing services. The only difference here is time.

2 How are virtual queues maintained? For example, when clients drop out of the queue or requests are being processed

If you drop out you don't get a ticket.

3 How would virtual queues know when a service is under load and when to forward the request when they are not?

They don't. Services can poll the queue and take work when they are ready for it. Once they empty the queue they can go to sleep. If you're ready to deal with concurrency issues look into the Producer Consumer Design Pattern

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.