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...
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...