Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If i get it right you are looking for something like facebook/gmail's real time notification. </p> <p>You can achieve it by implementing several architecture :</p> <ol> <li><strong>Ajax Pooling :</strong> Doing an ajax request after every N (asuume 5) seconds to the server and server will feed you the latest comments. This is the easiest and heaviest way. With a bit of traffic , it will not take a hell lot of time in flooding your server with so many unnecessary request as you will be doing request even if nothing happens.</li> <li><strong>Web Socket :</strong> You can use socket.io and open a socket to relay the updates to the all the clients. This is a common approach to solve this problem. A nifty one too. You can use <a href="https://stackoverflow.com/a/1086448/1426743">this</a> answer to cope up this approach.</li> <li><strong>Reverse Ajax / Comet :</strong> Last one is the toughest one . Facebook uses this architecture and as they are handling a bit of high traffic (:p) we can assume this one has the ability to scale. You can go through <a href="http://www.infoq.com/presentations/Comet-DWR-Joe-Walker" rel="nofollow noreferrer">this</a> video to understand the reverse ajax or comet approach. This <a href="https://stackoverflow.com/a/1086448/1426743">so answer</a> help you to get the idea of it.</li> </ol> <p><strong><em>Update:</em></strong> This <a href="http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery" rel="nofollow noreferrer">article</a> seems to give a bit of touch in different techniques to achieve your goal. It might help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload