Can WebService run in parallel or columnar only?

Are web service calls made from multiple clients in parallel or one at a time (i.e. will the second call only be considered after the first call completes)?

early.

0


a source to share


3 answers


Calls to web services are essentially calls to web pages on the server. Typically, the server maintains a pool of threads from which it pulls threads to service incoming calls. Therefore, if multiple computers use the same web service method at the same time, they will run in parallel as long as there are threads in the thread pool. If all threads are already busy, method calls begin to pause (and the server may even report that it is too busy to process the request). 5 computers shouldn't be a problem.



+1


a source


The web service can respond to the request. So what you need to do is a function that all 5 computers call to send the required data from each machine. Then, create a function that each computer calls to check if the response is ready. Once the data is collected from each computer, the web service will respond with the correct data.

Web service responses must be initiated by the client, not the server.



For instance,

  • SubmitData(data)

    returns bool -> each computer sends data, return on success or not. The server stores responses in the database.
  • GetResponse()

    returns data or FALSE -> Server checks if all 5 computers responded. If not, return FALSE. If true, process and return data.
0


a source


Almost all web service frameworks support synchronicity. if you are using C # then you can benefit from the following article:

http://www.codeguru.com/csharp/csharp/cs_webservices/security/article.php/c9179

0


a source







All Articles