Mark
Mark

Reputation: 33651

Comet vs Ajax for chatting

My site needs a chat room, and I'm also looking to implement a facebookesque person to person chat system.

What is most cost-efficient/performant (purely in terms of bw and server) for me. A regular 1 second poll ajax chat, or a comet solution.

Thanks.

Upvotes: 3

Views: 1707

Answers (1)

Dan McGrath
Dan McGrath

Reputation: 42048

Comet would typically result in lower bandwidth usage (assuming less than 1 chat message per second per chat on average), owing to the fact that it will only query the server once per message sent. It would typically result in more concurrent active connections to your server though.

This blog article may help you visualise it better.

Upvotes: 1

Related Questions