AJAX IRCX Client and Server

I am currently developing a system based on IRCX AJAX Chat and have several questions regarding server and client implementation; Any suggestions are welcome:

Server

Should it be implemented as a web service or a Windows Form application? I have experience developing servers based on Windows Forms, but I wonder if it will be better implemented as a web service, and if so, why?

Customer

How are web clients being implemented today and what is the preferred method for implementing a web client?

My decision is still

  • ASP.NET Web Forms with AJAX Update Panel (this seems the most viable)
  • Using jQuery to connect to a web service with JavaScript timeout

Poll

How often should the server be polled for new messages? 0.5 seconds seems a bit excessive, and something between 2 or 3 seconds seems sluggish.

Thanks for your input.

+5
source share
3 answers

I believe that using ASP.NET (Sockets and Update Panels) seems to be the best approach. Using jQuery in this context now seems a little invalid because it will not maintain a constant state with the chat server, which is required for real-time communication.

An alternative way I found would be to use web sockets and Backbone.JS to process the data returned from the server.

http://blog.fogcreek.com/the-trello-tech-stack/

+1
source

- , . , , -, , .

+6

, , .

SignalR (- )

SignalR - "- " ASP.NET. , . , -, , Ajax , SignalR.

.

For more information, visit the SignalR website .

+4
source

All Articles