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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:23:20+00:00 2026-06-02T08:23:20+00:00

What is the best way for loading data into different modules like iGoogle? I

  • 0

What is the best way for loading data into different modules like iGoogle? I have three ideas, but which one is preferred?

  1. Generate the html page dynamical with the lastest data from the database.
  2. Serve a almost static html page, then the client fetch the data from a api with JavaScript
  3. Serve a almost static html page, then the client connects to a websocket which will provide the client with history data from the db before pushing the live-steams.

After one of these three cases the client connects (of course the third alternative will never disconnect) to a websocket which pushes live data.

Which alternative is the most preferred (fastest, most lightweight) and uses the techniques in the way they where meant? I have a feeling that the third alternative uses websockets in a wrong way?

My conclusion after some research and thinking;

Number 1:

  • Can be used even if JavaScript is turned off
  • We need to serve a dynamical page, with disk io

Number 2:

  • Serves a fast html page
  • Maximal number of connections (html page, api, websocket)

Number 3:

  • Serves a fast html page
  • We have minimal number of connections, since we will connect to the websockets even if the data is fetched before (html page, websocket)
  • 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-02T08:23:21+00:00Added an answer on June 2, 2026 at 8:23 am

    If performance (and latency in particular) is important to you, going with solution 3 seems perfectly okay. Number 1 is nice for graceful degradation (as you’ve already noticed yourself), and perhaps number 2 is het most conceptually clean, but I think all solutions are fine.

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

Sidebar

Related Questions

When loading data into my Fragments I would would like to have an indeterminate
I'm looking for the best way of loading formatted data in VBA. I’ve spent
Are there best practices out there for loading data into a database, to be
What the best way to report a syntax error when I'm loading a JSON
What is the best way to handle browser-specific CSS file loading? Assume you are
What is the best way to design a SSIS package? I'm loading multiple dimensions
What's the best (and easy) way to display any loading icon (rotating wheel, screen
The best way of describing this is I have a table of people with
The best way to store images into MySQL is by storing the image location
What is the best practice of introducing custom (typically volatile) data into entity model

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.