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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:44:42+00:00 2026-06-14T03:44:42+00:00

When it comes to webservices response messages, how much data is too much? I

  • 0

When it comes to webservices response messages, how much data is too much?

I have an HTTP servlet written in Java that is open outside of our network. It makes a call to a database, then sends a JSON message back over the firewall. We’re talking 344kb just for the data, not including packet headers. I wouldn’t consider this substantial. We’re receiving the response on both iOS and Android platforms, total round trip could be anywhere from 1 second to 15 seconds. An average being maybe > 6. I’d like to get this steadily under 5 seconds and I’m learning this is quite the feat. Based on my timings, the webservice call to the database is milliseconds. We’ve wired directly behind the firewall but in front of the internet (thus ruling out the internet) and have seen a total round trip of maybe a second.

Just as a test I’ve trimmed the return JSON to return only 1 row of data (4kb) and, of course, I’m seeing substantial speed increases… steadily < 1 second when outside of our network. It really begs the question, is there a max data size when returning JSON messages to be consumed on mobile devices where the expectation is < 5 seconds? Running wireshark shows me this is being delivered as multiple packets, I imagine having a lot of do with it.

I’ve also clocked the time the client receives the message and the time it takes to render it on the screen… mere milliseconds.

I’d hate to break my client program up into multiple webservice calls for different data, considering the program is very basic and I don’t see it requiring multiple calls.

What do you think? Blame the internet and just make a nice splash/loading screen? 🙂

** EDIT: I also forgot to add that I’m going through SSL **

  • 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-14T03:44:43+00:00Added an answer on June 14, 2026 at 3:44 am

    Blame mobile connections and their added latency.
    It’s not even download speeds, expressly, rather the likelihood of maintaining a constant connection, and non-chunked packets.

    Sadly, you’re not going to find a “right” answer here.

    Under perfect conditions, a phone might have an RTT of a second or two, with all of your data.
    Under less-ideal circumstances, your data might never finish arriving.

    So you need to subscribe to a balancing-act of weight versus frequency.
    And nobody can really give you the ratio but you.

    Personally, my advice might be to start breaking the data down by module.
    If you’ve got little modular widgets which make up your app, each requiring config data, or user-data, load each one separately, and in a loosely-coupled way.

    As a quick illustration, you might have a chat-app, where your message-window, list of online friends and list of PMs all load independently of one another.

    If each initializes as it’s ready, and each has its own separate “loading” indicator (progress is nice, but really a “working on it” will do).

    If your app is more like a blog roll, or a set of items, where only a handful can be on screen, then logically chunk them based on average number per screen.
    Set that on a timer, or in a queue where the successful loads trigger the next async load, until you get an empty response back.

    If your app is more like an analysis-suite, where you’re loading thousands of rows of stats…
    Well, there’s not a lot you can do, but make sure the user knows that it IS working.
    You could send a “total” field with the first result, and mark your progress based on how many unique rows you’ve loaded thus far.
    Or if you had stats by day, you could chunk by day or by week, and mark on a bar or calendar, how far back your currently-available set goes.

    There’s no easy answer here, but hopefully a little help, and one piece of advice:

    Waiting 5 seconds in a program where I can see that everything is streaming in, and will work when it’s done, is more bearable than 3 seconds where it’s just a blank screen and nobody tells me a thing, before the finished product pops up.

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

Sidebar

Related Questions

Data comes in by email as a zipped file. The Java solution we wrote
Edit: Sorry guys, realised I have no idea when it comes to integrating Webservices
I do not have IIS, I use my localhost that comes with Visual Studio,
I have a winform application that uses some referenced web services to get data.
I have a Flex application that needs to grab reporting data from a JasperReports
Data comes from Wordpress metabox in a form of single long array. The data
Android comes with lots of system resources ( android.R ) that can be used
Issue comes up when i try to unload plugin that is loaded and load
Contour for Umbraco comes with a workflow option that lets you send an email
This code comes from: http://code.activestate.com/recipes/577090-file-encryption-using-stream-cipher/ import sys import random if len(sys.argv) != 4: print

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.