Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8303981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:41:21+00:00 2026-06-08T17:41:21+00:00

How to show continuous real time updates in browser like facebook ticker, meetup.com home

  • 0

How to show continuous real time updates in browser like facebook ticker, meetup.com home page does? In python, PHP, node.js and what would be the performance impact at the server side ?
Also how could we achieve the same update thing if the page is cached by an CDN like akamai?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:41:23+00:00Added an answer on June 8, 2026 at 5:41 pm

    You have two options (that others have detailed above). In case you are not familiar with some of the conceptual ideas behind each option, I figured I’d give a line or two about them. Note that I’m presenting these concepts at a very, very high-level.

    Your three options are:

    1. Short-Polling
    2. Web Socket
    3. Comet / Long-Polling

    Short Polling

    Short Polling overcomes the one-way communication between Client-Server by forcing the client to continuously send requests to the server of the form:

    Client: Do you have a message for me?
    Server: No.
    Client: (wait x seconds)
    Client: Do you have a message for me?
    Server: No.
    Client: (wait x seconds)
    Client: Do you have a message for me?
    Server: Yes. Here it is!
    Client: Yay!
    Client: (update message)
    

    The constant nagging on behalf of the Client is called Polling. In order to implement this structure, you’ll need to set up your server to “listen” to these polling requests from the client. The server will also have to store those messages somewhere, so that when messages are ready, the server can deliver them. At a very high a simplistic level, your server needs to:

    • Accept general web requests
    • Accept polling requests
    • Run background jobs that fetch messages
    • Store these messages somewhere so that when polling requests come in, the server can check for them.

    You will also need to tie these polling requests to some kind of session ID for the user, so that the right messages reach the right person. Overall, the paradigm is complicated and, in my opinion, inefficient.

    Web Sockets

    Web Sockets are new to HTML5. The basic idea behind them is that the Client can maintain a direct connection to the server and they can push information back and forth to each other. Therefore, instead of the usual: Clients sends GET request >> Server responds with content, Web Sockets allow you to maintain a continuous dialogue.

    In order to set this up, however, you need:

    • Browsers that are WebSocket compliant (not all are).
    • A server that can handle web sockets (not sure how to articulate this, but not all servers are set up for this kind of arrangement).

    The setup is somewhat complicated, albeit simpler than long polling:

    • Client maintains connection to Web-Socket-enabled connection to Server
    • Server pushes results to Client through web socket
    • Client updates page according to results

    You’ll see this pattern referred to as Push Notifications (certainly, if you own an iPhone you’ve experienced this) as the Server has been empowered to push “stuff” to the client (how impolite!). As there are lots of client and server nuances, I would recommend testing out something like Pusher, which is basically a web service to handle all the hard parts of Web Sockets. It’ll be an easy way for you to test and play with the pattern before embarking on setting it up yourself. It has both client and server-side libraries.

    Hope that information gives you a baseline to solve your problem. The other answers have more direct information on how to solve each scenario.

    Comet / Long-Polling

    An alternative, seemingly cross-browser approach to Web Sockets is Long-Polling (see Comet). In this case, your client establishes a connection to the server and leaves it hanging, waiting for data to be pushed back. The setup for this is somewhat complicated, but it does represent a middle ground between Short Polling and Web Sockets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to continuously show and hide two page elements in turn. This is
I am doing a project called user initiated real time object tracking system .
I'm checking out the HTML rendering of a page: http://gothamist.com/2010/07/18/wikileaks_founder_no-show_at_nyc_ha.php if you look at
Basically, how does this work: http://www.stream-hub.com/demo/RealTimeChart/index.html They are streaming JS through an iframe continuously
When I make box plots, I like to also show the raw data in
I want to show continuous integer values from a certain min value to max
In the winforms we have a property called continuous that will show the progress
Show me another way to write so it finds the first A: $(UL.tab LI
show grants for charm@'localhost'; ---------------------+ | Grants for charm@localhost | +-----------------------------------------------------------------------------------------------------------------+ | GRANT USAGE
I show UIAlertView with UIAlertViewStylePlainTextInput style. Then I try to validate for empty field

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.