English 中文(简体)
如何把客户的所有要求发送到服务器的单一程序?
原标题:How can send all request from client to single process in server.?
  • 时间:2010-06-18 10:33:00
  •  标签:
  • c#
  • asp.net

我正在开发这个网站,包括装置名称清单和有关布顿。 当有人对“建筑群”点击时,一个过程将运行在服务器上。 当超过10个用户点击了“建筑顿”时,该服务器将会出现更多的程序。 如何把客户的所有要求发送到服务器的单一程序。

问题回答

• 可以设立“WCF”服务公司,拥有目前运行过程的一定比例,并确保每个工作过程都比“X”多。 如果你真是这样,而不是仅仅少量,那么你会问你,哪怕是哪怕是哪怕是哪怕是的话,那么就能够阻止其他要求,而同时又可以停止。

如果需要的话,可能会使向用户提供反馈更加困难,因为如果一个或一个以上的过程被搁置,你可以立即告诉用户,建筑已经开始等等。

象你一样,你正在策划一个进程,以在天线上进行建设(我不建议这样做,因为爱护会的间谍活动。 净应用可登陆。 围绕每项请求进行最便捷的办法是把你的建筑过程与App.net网络应用分开。 因此:

  1. Move the build action to a Windows Service on the same machine.
  2. Use Windows Communication Foundation to expose the service entry point to the Asp.Net application
  3. Make the WCF instance a singleton instance, so that only one request can access it at a time. (This is the drawback of using only one thread.)

您的另一种选择是将申请记录下来,并有一个过程(窗口服务可能)监测点,同时处理。 这方面的缺点是,你赢得了直接结果,供用户使用。 当进程结束时,你需要某种方式通知他们,但你很可能不得不与上述解决办法做同样的事。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签