ASP.NET WebService接收来自多个线程的调用
假设您有一堆线程,它们都从网站调用同一个 ASP.NET Web 服务。我想知道是否有人知道网络服务站点如何处理这些呼叫?所有同步都已处理好吗?这些调用是按顺序调用的吗?
任何人都可以透露一些信息吗?
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它们由 Web 服务器处理,就像任何其他 Web 请求一样。您不需要任何常规网站中不需要的同步(如果您需要它,性能将首先在负载下消失)。没有订单保证。请求在到达时得到服务,响应在完成后返回。
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.
据我所知,每次调用都会创建一个新服务。如果您有权访问任何数据库或文件系统。你需要处理。以任何其他方式你都不需要关心它。如果你使用 SQL 或 MySQL 多线程也应该是支持的。
嵌入式 SQL 应用程序中的并发事务和多线程数据库访问
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