I’ve a site which in some cases use Message Queue asynchronously.
The method which sends the message returns its id. Then I make an AJAX call to get the response for the message with the saved id.
This works great, but now the site is going to be on a cluster and there starts my problem. I can’t ensure that the AJAX call will be recieved by the same server which sent the message. Is there any known solution to this problem? Any suggestions?
Thanks, Diego
three solutions come to my mind:
Sometime ago I developed a web application like this and I dispatched the request based on client input parameter, that’s a better solution I think.