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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:55:50+00:00 2026-06-13T22:55:50+00:00

I have a client-server web app I’m working on. There’s a point in the

  • 0

I have a client-server web app I’m working on. There’s a point in the initial loading of the client-side where I need to process some JSON data from the server-side db to get it in the right format… Which essentially entails adding a bunch of empty JSON objects to it (thus making entire JSON array bigger). This formatting calculation is somewhat trivial (no need for a super-computer), so it can be done on either the client or the server.

So the 2 choices I have for implementation are:

  1. Format JSON data on server, send MORE data to client
  2. Send LESS data to client, format JSON data on client (extra client computation)

I can think of pros and cons for both choices…

  • Choice #1, consistently compute the formatting, but increase number of packets that must be sent for initial load.
  • Choice #2, minimize number of packets that must be sent, but add
    extra computation to clients with varying or unknown performance.

Out of these 2 choices, is there a “best-practices” solution which I should typically lean towards?

  • 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-13T22:55:52+00:00Added an answer on June 13, 2026 at 10:55 pm

    That’s a good and interesting question. I’d rather choose option #1 because you’ll never know about the features of a client device. However, if your program runs on a server (normally with a powerful hardware) the processing time will be independent of the client device, which could be a mobile phone with reduced computing capabilities.

    • 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 web app which will be hosted on the client's server.
I have setup a web app for a client. The server is in US
I have a web app that takes some client info and produces a letter
I have a web app that uses socket.io. Connecting the client to the server
At work, we have a client-server system where clients submit requests to a web
I'm new to Python and web development (although I have development experience with Client/Server
I have created my web socket server and client using this simple tutorial here
I have the task of choosing an XMPP server/client solution for an internal web
I have implemented a web service with server and client authentication using keytool. The
We have client server based app which saves user related data into a zip

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.