J
James Wong
Hi! everybody,
My Web Services don't process requests from two clients simultaneously but
one after the other. I'm developing a simple prototype web services which
will take a random number of seconds (just want to simulate a process which
takes some time to finish) to return value to client. If a client program
calls the web services while it is processing the request from another
client program (two client programs are on the same PC, I don't know whether
it is a concern), the web services will not process the second request until
the first is finished. I found this behavior from the process log issued by
the method of web services. I'm using synchronous call and don't know
whether I should change it to asynchronous call in this case.
I want the web services can process multiple requests at the same time. Of
course, there should be a limit on number of concurrent request. Does
anybody understand this behavior and the solution on this?
Thanks for your attention and any advice!
Regards,
James Wong
My Web Services don't process requests from two clients simultaneously but
one after the other. I'm developing a simple prototype web services which
will take a random number of seconds (just want to simulate a process which
takes some time to finish) to return value to client. If a client program
calls the web services while it is processing the request from another
client program (two client programs are on the same PC, I don't know whether
it is a concern), the web services will not process the second request until
the first is finished. I found this behavior from the process log issued by
the method of web services. I'm using synchronous call and don't know
whether I should change it to asynchronous call in this case.
I want the web services can process multiple requests at the same time. Of
course, there should be a limit on number of concurrent request. Does
anybody understand this behavior and the solution on this?
Thanks for your attention and any advice!
Regards,
James Wong