Hey everyone.
Apologies if the title wasn't clear, I struggled to sum up the issue in a few words.
I'm going to begin working on an application that will show the admin user a list of paginated applications that the admin will need to approve. As there will be more than one admin user I am anticipating the issue that two admin users may work on the same application at the same time. Of course they could communicate with one another to split the work up so they do not conflict on what they are working on, however I think it would be great if I could provide a technical solution within in the app.
My initial thoughts are that I would need to provide some real time notification (perhaps using socket.io/redis) to show admin users if an application was currently being viewed by another admin user. However, I'm not sure I will have access to redis as I think the solution may need to be implemented on shared hosting that doesn't provide that technology, unless there's some way of installing it? Other thoughts I had were using ajax or record locking from the DB side but they don't seem to be a complete solution.
A further issue is that after showing a notification to admin users that an application is currently being worked on, how do I know when to stop it, let's say the user closed the page and went for lunch - would there be a way to detect this and stop the notification?
TL;DR: I want to stop admin users from working on the same applications by providing notifications/alerts.
Any ideas or guidance would be most appreciated! Thank you.