Tony The Lion
Tony The Lion

Reputation: 63310

ASP.NET WebService to receive calls from multiple threads

Let's say you have a bunch of threads that all call into the same ASP.NET webservice from a website. I wondered if anyone knows how these calls would get handled at the webservice site? Is all synchronization taken care of? Do these calls just get called in order?

Can anyone shed some light.

Upvotes: 0

Views: 931

Answers (2)

goldengel
goldengel

Reputation: 611

As far as I know for each call there is a new service created. If you have access to any database or filesystem. you need to handle. In any other way you don't need to care about it. If you use SQL or MySQL multithreading should be supportable too. Concurrent transactions and multi-threaded database access in embedded SQL applications

Upvotes: 0

R. Martinho Fernandes
R. Martinho Fernandes

Reputation: 234664

They're handled by the web server just like any other web request. You don't need any synchronization you wouldn't need in a regular website (and if you need it, performance will be the first to die under load). There are no guarantees of order. The requests are served as they come and the responses returned as they complete.

Upvotes: 1

Related Questions