ATLAS Chat
Home
|
Reset Page
|
Open another Window
|
Page created: 7/24/2008 8:27:55 PM
Messages:
Enter a Message:
Your Chat Handle:
Enter a Chat Id:
Active Users:
This example demonstrates using ATLAS and its JSON Web Service functionality along with JavaScript code to create a Chat application. This sample uses plain JavaScript for updating the display and managing the various user interface features.
Since AJAX cannot reliably do a PUSH model the only way for the client to get the latest messages is to poll the server for updates frequently. Therefore this is a very chatty interface that fires a lot of requests to the server. Load with many users in this scenario could very easily become a scalability problem. However, this example uses pure JSON messages which push only updated data back and forth so message size generally is very small. You might want to break out Fiddler and compare both the ATLAS and Anthem chat which use different approaches, where this approach is the more bandwidth friendly of the two.