I would like to implement a WebService containing a method whose response will be delayed for less than 1 second for about an hour (this depends on whether the data is already cached or the files from the list are displayed).
Basically, my question is, what would be the best way to implement this if you can only connect from the client to the WebService (without notice)?
AFAIK it will be possible only with the help of any survey. But the survey is bad, and therefore I would prefer not to use it. The other extreme may simply be to allow the connection to remain open until the method is executed. But I think that this can slow down the web server and network. I believe that combine these two techniques. Then the client will call this method, and the server will return after at least 10 seconds, either with a message that the client needs to be polled again, or the actual result.
What are your thoughts?
source
share