ATLAS Chat Application Question.

Last post 02-16-2007 7:44 AM by kalel. 4 replies.

Sort Posts:

  • ATLAS Chat Application Question.

    01-20-2006, 10:41 AM
    • Member
      15 point Member
    • Bill E
    • Member since 11-18-2005, 3:50 PM
    • Posts 3

    Hello, need a little advice from you ATLAS / AJAX gurus.

     

    I am writing a chat application and want to employ these technologies. I have seen some simple examples [on various sites] where a timer is used and the server is polled by the client every second (or whatever interval) to get the latest messages, etc.. for the chat session.

     

    The chat text box is updated via AJAX so that no form post is necessary, and that’s a good thing. However, my application needs to support a potentially large number of clients. Having each client poll the server on a given interval would create too much unnecessary network traffic – so here’s the big question…

     

    Is it a reasonable goal to build an application using this technology where events are generated on the server when new messages are posted – then the server is able to ‘broadcast’ to any registered client? I realize this doesn’t correspond with basic internet fundamentals but after seeing the CallBack, OnComplete, etc.. I was hoping for a plausible AJAX solution that would support up to 10000 clients.

     

    Any advice is appreciated; thanks in advance.

  • Re: ATLAS Chat Application Question.

    01-20-2006, 3:56 PM
    • Star
      12,508 point Star
    • Freakyuno
    • Member since 01-20-2005, 4:57 PM
    • Midwest - United States
    • Posts 1,952
    • TrustedFriends-MVPs

    Your probably going to want to use client / server technology very loosely here.  My recomendation would be to use a combined form of Ajax / Asp.net 2.0 and a client side ActiveX control paired with a server executeable that extends your database.

    The essence of what happens is, the database is updated by a client submit, the extended exe notifies through sockets, the clients registered to recieve broadcasts (loged on) , using the client side ActiveX object as the recieving end of that, then you use that even to tell Ajax it needs to update.

    Getting 10,000 page refereshes to your DB every second isnt that attractive, especially if 30 to 40% of the time, nothing is new.

  • Re: ATLAS Chat Application Question.

    02-15-2007, 8:17 AM
    • Member
      125 point Member
    • kalel
    • Member since 05-29-2006, 10:11 AM
    • Posts 42

    Hi Freakyuno, i just searching for something like Bill E wants, but i just don't know from where start!

    Have you can indicate any start point? Like a tutorial, website, examples, cause searching in the forum there's a lot of users with that exactly same doubts and just don't no from where start too.

    If you can me bring some light about the 'start point' of your answer i will be very very gratfull.

    THANKS IN ADVANCE, SO MUCH!

    Kalel

  • Re: ATLAS Chat Application Question.

    02-15-2007, 2:07 PM
    • Star
      12,508 point Star
    • Freakyuno
    • Member since 01-20-2005, 4:57 PM
    • Midwest - United States
    • Posts 1,952
    • TrustedFriends-MVPs

    Give this resource a shot, it may get you started.

    http://www.codeproject.com/Ajax/UChat.asp

  • Re: ATLAS Chat Application Question.

    02-16-2007, 7:44 AM
    • Member
      125 point Member
    • kalel
    • Member since 05-29-2006, 10:11 AM
    • Posts 42

    Thanks Brian! Your tip was great, and visiting the article I maded a searching in the Code Project Site and found this another articles very interesting too for this issue.

    The links:

    Create a Chat system of using Ajax and asp.net

    Simple Chat asp.net + Ajax

    A Sample Chat Application using Mike Schwarz's AJAX Library

    We are discussing about it in another thread too, and i'm trying join all the related content is possible for all are looking for too, so i'll post your tip there too and have sure that your contribuition you'll be very helpfull.

    The thread is this: http://forums.asp.net/thread/1373404.aspx

    So If you found something more please, join us and post in the thread.

    Thanks so much!

    Kalel

     

     

     

Page 1 of 1 (5 items)