Comet technology — allows sending arbitrary messages to client through server initiative — it’s a push notifications. You can use push technology to delivering messages. For the correct work of push notification always use a push service. You can perform these tasks because of permanent connection between browser and Comet server. Here used websocket technology. For those browsers whose don’t support websocket technology always used long polling AJAX query mechanism.
On this scheme you can see field of using Comet server in working process. We can notice next way (side) of notification:
Comet server permanently maintain opened connections and this let to unlade (unload) structure of your site. Comet server realized on C++ for maintain a big amount of opened connections with browsers and server always correct solve (perform) the current tasks.
Push notifications can be implemented by PHP, but PHP need to use more memory consumption and time rate, so server will be overloaded. Therefore, we recommend using specified tools.
We recommend you to read these articles: