来自 WCF 服务或 ASP.NET 的异步操作
我正在使用 WCF Ria 服务和 Silverlight 开发一个应用程序。性能和可扩展性是该项目的必须条件。问题是我必须从 RIA 服务调用多个 WCF 服务,并且服务调用需要时间。线程是网络服务器上的有限资源,因此当我调用服务时,执行线程只是挂起并等待答案。这在我的网站上是不可接受的。我记得在 .NET 2 天时就有一种方法可以解决这个问题,我想现在仍然有,但什么都不记得了。任何记忆刷新都会很好:)
谢谢
I'm developing an application using WCF Ria services and Silverlight. Performance and scalability is a must in this project. The problem is that I have to invoke several WCF services from RIA Service, and service invocation takes time. Threads are limited resource on the webserver, so when I invoke a service, the executing thread just hangs and waits for the answer. This is not acceptable in my sitation. I remember there was a way to workaround this issue back in .NET 2 days, I guess there is still now, but don't remember anything. Any memory refreshment would be nice :)
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来标准异步模式是正确的选择。感谢 Ladislav Mrnka 为我指明了正确的方向。
Looks like standard asynch pattern is the right way to go. Thanks to Ladislav Mrnka for pointing me to the right direction.