English 中文(简体)
Ajax instant messaging (web-based)
原标题:

Just wondering: Would it be acceptable to start some simple Ajax instant messaging (web-based) for a large social network service (considering thousands of registered users)? I am new to this, so I m just wondering. What if to check for a new message every two or three seconds?

Edited: Could a plain shared server handle so many requests every so often? And yes, I would roll my own program.

问题回答

There re many web im client based on standard XMPP protocol. You could try iJab or JWChat.

It doesn t make sense to write your own, unless you have some unique requirements, but whether the server can handle this largely depends on the server language and webserver setup, as to how well it scales.

You will need to do some heavy load testing, to ensure that the high load that is expected will work, as your traffic will be very heavy. For example, if your social networking site is soccer related, then during the World Cup you may expect to see more traffic than Wed mornings.

If you asked the question with:

  1. I want to use language X.
  2. I want to use webserver Y.
  3. I am using this framework for the webservice.
  4. I would like to accept voice recordings and webcam recordings over IM, as well as text.

How well will this scale on my one 1GHz server?

If you manage to make a peer-to-peer (P2P) browser-embedded chat, than even a shared hosting will do for dozens of thousands of simultaneous users :) :)





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签