I'm currently developing a customer support web application using Java, where I need to display the status of "Customer Representatives (CR)" in the front-end - whether they are available, busy, or away on the phone.
When a CR ends a call with a customer, their status will be updated in the database. This change should also be immediately reflected in the front-end as well.
- One option could be to use AJAX to continuously check the database for the CR status.
Are there any other methods that could be used to achieve this functionality?