English 中文(简体)
协会的会议模式。 净额
原标题:Session mode in ASP.Net?

会议的运作方式如下:为我的协会执行。 网上网站

1)InProc . 2)State Server. 3)SQL Server. 4)Custom.

最佳回答

这完全取决于你的情况以及你希望运作的网站类型。

我怀疑你预期的交通量和它正在运行的硬件也是一个重要因素。

你能够为我们提供更多信息。

<>Performance

  • <>InProc——“快车”,但会议数据越多,网站服务器的记忆越多,而且会影响业绩。

  • StateServer - When storing data of basic types (e.g. string, integer, etc), in one test environment it s 15% slower than InProc. However, the cost of serialization/deserialization can affect performance if you re storing lots of objects. You have to do performance testing for your own scenario.

  • SQLServer - When storing data of basic types (e.g. string, integer, etc), in one test environment it s 25% slower than InProc. Same warning about serialization as in StateServer.

<><>Robustness>

  • <>InProc——如果工人过程(aspnet_wp.exe)回收,或者如果遗嘱重新启动,则会失去工作状态。 这是因为,会议状态储存在一名遗体的记忆空间。 详情见KB324772

  • StateServer - Solve the session state loss problem in InProc mode. Allows a webfarm to store session on a central server. Single point of failure at the State Server. SQLServer - Similar to StateServer. Moreover, session state data can survive a SQL server restart, and you can also take advantage of SQL server failover cluster, after you ve followed instructions in KB 311029.

http://www.eggheadcafe.com/articles/20021016.asp” rel=“nofollow noreferer” 。

问题回答

没有一个明确的答案。 这取决于贵方如何运作、你拥有多少服务器、你对失败的容忍程度如何等。 我将,随同,然后作出知情选择。

如果你能够使你从一开始就在届会中储存起来的一切,通常很容易从一种方式转向另一种方式,除非你使用像会议——“End”活动这样的内容,这种活动只有在使用假装时才会发生火灾。

缺省是InProc,对大多数小型和中等规模的网站进行罚款。 你只是用了,你根本就不需要执行任何事情。

如果您具备任何特殊的治疗条件,如负荷平衡服务器或用户的极端数量,则你们需要其他一些方法。





相关问题
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!

热门标签