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 7181405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:33:01+00:00 2026-05-28T17:33:01+00:00

I am using working on web app which had a DIV in which latest

  • 0

I am using working on web app which had a DIV in which latest update about a topic is shown which is coming from some other website. So what i want is to update the DIV as soon as the data is really updated in back end database.

On the back-end I am using cron to fetch & store data in database.

A simple way of doing this is to use setInterval() function and keep on fetching the data at a particular time interval but I think this would just cause unnecessary load on the server and just waste CPU cycles.

So what’s the best way to implement this? can/should i use nodeJs for this?

-Thanks

P.S. I just want something like facebook uses to upddate it’s news feed in the middle of page.

and i have no experience with nodeJs yet so honestly i don’t even know that nodeJs is good for this or not.

  • 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-05-28T17:33:02+00:00Added an answer on May 28, 2026 at 5:33 pm

    If the problem you’re trying to solve is how to efficiently update your browser display without repeatedly polling the backend server, then you can use “long polling” in which you make a web server request with a long timeout and the request only returns when there is actually some new data or it eventually times out. You can read more by searching Google or SO for “javascript long polling”. Here are a few of those references:

    How do I implement basic "Long Polling"?

    How to implement Server push / long polling / comet using PHP and Javascript

    http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery

    In modern browsers, you could also use web sockets where you client opens up a socket directly to the server and the server just sends you new data when there is new data.

    In either case, you need a back-end server that can handle lots of simultaneous, but mostly idle connections.

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

Sidebar

Related Questions

I'm working on the design of a web app which will be using AJAX
I am working on a web app using C# and asp.net I have been
I am currently working on a web app using Wicket and started using jQuery
Im working on an iphone web app using JQTouch , im just wondering what
I am working on an iPhone mobile web app using jqtouch to make it
I'm working on a database for a small web app at my school using
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
I am currently working on a simple web application through Google App engine using
Using Visual Studio 2008 and VB.Net: I have a working web app that uses
I've been attempting to pull hard-coded configuration data from a Tomcat web-app which I'm

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.