In fact, the turn is not worth clicking. The whole idea of the queue is that the receiver should not receive the message in real time and wants to periodically check the message. If you need real-time communication, you can create an HTTP / TCP listener on the recipient side and let the sender make an HTTP / TCP request.
Thus, one approach is to create a web service on web roles using internal endpoints. You send a business address along with a job role message using the queue. When the task is completed, the work role calls the service to notify the web role that the task has been completed.
This approach is great, but it does not make much difference. It cannot display anything in the user interface (unless you are implementing a web socket), because the server cannot notify the browser. Therefore, if you want to display a notification in the browser client, I would suggest you use the pull solution (if you do not implement a web socket). If you use a rich client, you can host the web service on the client machine and allow the employee role to notify the client by calling the service.
Best wishes,
Ming Xu.
source share