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

  • Home
  • SEARCH
  • 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 8818897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:13:10+00:00 2026-06-14T05:13:10+00:00

I have a simple web app which lists a private group of people and

  • 0

I have a simple web app which lists a private group of people and the last message they posted.

I’m currently just polling by using Ajax to hit a php script every 30 seconds, which gets all people and latest messages then returns as JSON. I parse that and update the DOM.

Not very efficient since most of the time, nothing has changed but it still gets all data each 30 seconds.

  1. Is there anything basic I can do, just with the code to improve this?

  2. Should I use something like pusher.com?

There are a lot of tutorials out there on implementing long polling but I’d like to keep this simple as possible.

  • 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-14T05:13:11+00:00Added an answer on June 14, 2026 at 5:13 am

    when you use request http every 30 second it’s possible many resource will be use, if there are 1000 users and more i think it’s not good for web server,

    i have suggestion using Nodejs , node js is javascript server a platform built on Chrome’s JavaScript runtime for easily building fast,and support longpolling ,and non block request.

    with nodejs you can build your webserver that can be handle many users and for realtime application.

    there are many framework can be implement with node js

    1. socket.io
    2. express

    and this is simple tutorial if you want to try that..
    http://martinsikora.com/nodejs-and-websocket-simple-chat-tutorial

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

Sidebar

Related Questions

I have a simple JSF web app as follows. The Java class contains: private
Recently, I wrote a simple web application. I currently have. A static page which
i have created a simple web app which contains recaptcha authentication. however, i feel
I have a simple web-app in which I use struts and xslt transformation. In
I have a simple web app with users and posts. I have an index
I have a simple web app built in asp.net webforms c# where and how
I have a simple web app: a web page with a form to submit,
So I have a simple web app where I can create a user (UserModel)
I have created a simple web app/form using google app engine. the site is
I'm writing a simple web app in PHP that needs to have write access

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.