php-chippest way for instant messages, Notifications
I'm building a site that need to have instant messages and notifications.
I have heard about socket and comet, but it seems a bit complicated. Also
heard about ajax solution. the client make a request and then the server
only replies when he got new data to send. (he can check for new data like
every x milliseconds with sleep method. The new request will be send only
when the last one got respond, or after it timed out.
looking for new messages every x seconds just doesn't feel smart, but it
very easy Implementation so I'm temped to use it.
The problem is, does this system will slow the client browser/ my server?
and if so, whats the cippest way to implement an instant
messages|notification system?
No comments:
Post a Comment