News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ThinkPHP Blog:
Comet in conjunction with a PHP socket server - server-client communication
September 02, 2008 @ 08:41:55

In a new post to the ThinkPHP blog today there's a look at combining Comet with PHP to make a simple method for the client to talk back to the server outside the usual methods.

If a couple of users have opened the application there are already some hundred or thousand requests per second. The outcome of this is a big load for your server and a highly increased traffic - your server will in a senseless way be overloaded. In conclusion, our problem is the enormous amount of polling without knowing whether the server really wants to send a new push. Let's turn the initial situation around. And we get the solution to our problem: Comet.

With Coment, the model changes and the request is "cached" on the server-side automatically in a single Comet instance. Coordinate this with another recommendation of theirs, a PHP socket server, and you can do some pretty interesting things.

0 comments voice your opinion now!
communication socket server comet ajax push pull


blog comments powered by Disqus

Similar Posts

Jim Plush's Blog: MYBIC GOES 1.0! (yes, yes with firebug debugger!)

Daniel Krook's Blog: Zend and IBM update PHP for i5/OS

PHPit.net: Book Review - AJAX and PHP - Building Responsive Web Applications

Zend Developer Zone: Notes from the Web Builder 2.0 Conference

Mike Willbanks's Blog: Building and Maintaining a PEAR Server with Pirum


Community Events





Don't see your event here?
Let us know!


deployment api release series framework list conference bugfix laravel community introduction tips threedevsandamaybe voicesoftheelephpant podcast interview code symfony language zendserver

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework