ASP.NET Efficient Chat Application Approaches

让人想犯罪 __ 提交于 2019-12-09 00:34:34

问题


I have ASP.NET 4 Web Application that connects with SQL SERVER 2005/2008

I want to add a "chat" feature to my application users.

Supposing the feature will be built from scratch, what's the best efficient reasonable approach:

  1. Using WCF web services with a Javascript timer every 3 seconds
  2. Using ASMX web services with a javascript timer every 3 seconds
  3. Using AJAX control from ASP.NET (Update Panel) and do a partial Post Back depending on an ASP.NET timer (server side) every 3 seconds.
  4. Sending requests from the database to the application telling him to refresh himself when a new message is there (I don't have an idea about this approach but I think the technology exists, but I don't even know its name)
  5. Some JQuery AJAX technologies that are outside Microsoft AJAX .NET Framework. these technologies should be able to communicate with SQL Server and be compatible with ASP.NET (Not PHP). I'm not sure about this approach.
  6. Any other approaches or opinions.

Supposing the feature will be built depending on a previously implemented library. what are possible libraries that are totally customized and so likely to be open source. If the library will save 25% of the work time so that will be great, but I can't use a hidden code (blind DLL) if it's pretty critical even if it saves 80% of the work time.

Thanks,


回答1:


You should look at SignalR - which is pretty good and less configuration required for it.

SignalR Project - http://signalr.net/

SignalR, Simple Implementation - http://rizwanahmed.net/?p=227

If you have more questions let me know...

Thanks, Riz



来源:https://stackoverflow.com/questions/15870138/asp-net-efficient-chat-application-approaches

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!