处理并发问题的最佳方法。 MVC应用程序
问题描述:
请告诉我应该使用的并发处理类型 - 乐观或悲观。我打算在一台机器上运行一个MVC应用程序,每天最多有8000个成员,最多500个在线用户。对于DAL,我使用实体框架
Please advise me the type of concurrency handling I should use - optimistic or pessimistic. I plan to run an MVC app on a single machine with max of 8.000 members and at most 500 online users at once throught a day. For DAL I use Entity Framework
答
除了你之外,任何人都不可能回答这个问题。在这种情况下没有最好的。只有您的业务规则才能适当。
It's impossible for anyone but YOU to answer that question. There is no "best" in this situation. There is only what your business rules dictate should be appropriate.