1
I need to implement a priority queue, this queue in addition to the priority, needs to take into account some other requirements, such as switching between services and professionals, and of course respect the client’s order of arrival for that service and/or professional.
My complete (hypothetical) scenario:
In a hospital we have three services offered (this in any other company can be the same situation, a law firm finally.):
Appointments, exams that will be performed on the day and another service that is a scheduling of exams. The system needs to switch between services, like, called someone’s query, the next should be from any other service and so on. The system also needs to switch between professionals, the call earlier was professional 1, the next should be professional 2 and so on.
I’ve been researching about some lib or some algorithm and the closest I found was the Python heapq but I couldn’t adapt and assemble my solution.
I really need a help, I accept suggestions of implementations, indications of libs that solve this problem anyway.
I tried several solutions and none showed the desired result.
I stand by.
PS: I did several searches here in the OS and did not find any similar question, if repeated please indicate question link.
In terms of persistent queue (it doesn’t come ready, it needs some configuration, but it’s little) AP can also look at the Rabbitmq.
– Piovezan