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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:39:59+00:00 2026-05-28T03:39:59+00:00

I am writing a social networking android application. I have create a .Net webservice

  • 0

I am writing a social networking android application. I have create a .Net webservice with a database on Microsoft Azure, and I plan to call that web service to get data from the cloud and display it to the user. Similar to Facebook.

Now, I have two approaches in mind, and I’m not sure which one to implement. The approaches follow:

  1. “Every time an activity loads, call the web service and reload all the data.” This, of course, is the easiest approach, but is it right? I mean, I have around 30 activities, and half of them load data, while the other half post. As far as I see, this approach can be a problem, because it might slow down the application. It can also increase my cloud bill with so many requests. And I don’t know if it’s right to reload everytime.
  2. “Call the webservice every 10 minutes, and store all the data in a SQLite database, and only update the data if it’s been over 10 minutes, or possibly even have a refresh button.” This approach is probably the better one, but I’m not sure if it is even worth writing so much code.

I need you advice in deciding on the right technique. Number 2 looks good, but what if there is something I don’t know, and I’m writing all that extra code for no reason.

Please help me out here. If there is even a better approach, please do tell me.

  • 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-28T03:40:00+00:00Added an answer on May 28, 2026 at 3:40 am

    It really depends on the sort of data, what sort of latency is required for the data and the quantity of data. Also the size of the project and benefit you will get from implementation as complexity will be increased. For a more precise answer provide further information.

    Local caching can be a very good idea in this sort of situation. It is fairly common practice and there are multiple mechanisms which could be used. Depending on the format of data retrieved from your web service, you can store in a

    1. Database, when data needs to processed (searched, queried etc) or there is a lot of data.

    2. File(s), sometimes useful if you are working with formatted data such as xml or json as you can maintain the structure. You can use the native android caching to assist in managing the storage.

    3. Preferences, when data is simple types (and strings) and there isn’t much of it.

    Local caching will reduce bandwidth consumption (will end up saving the user money which is always popular) and if implemented correctly memory and processing consumption. Possibly most important (depending on the data) it could allow for the effective use of the application when the user doesn’t have connectivity.

    By the way 30 activities sounds like a lot, you should really look at reducing that by sharing functionality across activities, this should improve navigation, code bulk and memory foot print.

    UPDATE from comments

    From the limited information available about your project I would suggest using the database as your data store (if any) as you don’t want to be caching complete SOAP messages in files, and the quantity 40+ records may make preference storage difficult to manage.

    However, as I have mentioned previously you need to consider complexity. When using the database you will have to create a method of construction (perhaps some sort of ORM) separate to your de-serialisation of SOAP objects because technically you will 2 separate persisted data formats.

    I am not able to get a definitive answer because there is still very limited information but you need to evaluate the cost of adding such a feature to your project and the benefits you will receive.

    I few other things worth mentioning when considering this sort of caching.

    • How you will manage the cache, it’s size and data integrity.
    • When will you cache, as soon as you have de-serialised your SOAP objects? when you have finished with the data? etc..
    • How will decide when to use the cache and when to hit the network?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a social networking application in VB.NET, with a target userbase of 1-2
I'm writing a social networking app that has contacts sync functionality. I have working
I'm currently working on two social networking sites that have a lot in common,
I'm writing an application that manipulates some sort of social network data, so the
I am writing an sms application that retrieves the messages from a MYSQL database
Writing an application in Cocoa that will take input from the user, format it
Using Entity Framework, I am writing a social networking app and trying to setup
I am writing small social application. One of the features is to write user
I'm writing a wicket project for a social network.In my project i have authentication
I have a similar issue like here: http://social.msdn.microsoft.com/forums/en-US/biztalkgeneral/thread/87d5a6ec-04ee-4c6f-8267-f526ee105f0b I have an asp.net web page

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.