I have an ASP.NET 4 web application that connects to SQL SERVER 2005/2008
I want to add a chat feature to users of my applications.
Suppose a function is built from scratch, which is the best effective reasonable approach:
- Using WCF Web Services with a Javascript Timer every 3 seconds
- Using ASMX web services with javascript timer every 3 seconds.
- Using the AJAX control from ASP.NET (update panel) and partial post-response depending on the ASP.NET timer (server side) every 3 seconds.
- Sending requests from the database to the application, which says that it is updated when a new message appears (I have no idea about this approach, but I think the technology exists, but I don’t even know its name)
- Some jQuery AJAX technologies that are outside the Microsoft AJAX.NET Framework. these technologies should be able to communicate with SQL Server and be compatible with ASP.NET (not PHP). I am not sure about that.
- Any other approaches or opinions.
Assume that the function will be built depending on the previously implemented library. which libraries can be fully customized and open source. If the library saves 25% of the working time, so it will be great, but I can not use hidden code (blind DLL) if it is quite critical, even if it saves 80% of the working time.
,