kaplanlior / midburn-queue

midburn.org tickets queue system
https://midburn.org
MIT License
2 stars 5 forks source link

Report back on individual position in the queue #8

Open eladg opened 8 years ago

eladg commented 8 years ago

Post registering, it would be awesome to report back to the UI of the one's position in queue.

The solution must be quick and SHOULD NOT affect the /register execution time (which should be as fast as possible).

Proposed solution: A redis key storing the queue size and a worker running on interval and updating the key. This will give an approximation of the position on the queue, depending on the time interval...