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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:50:45+00:00 2026-06-09T16:50:45+00:00

Please bear with me while I provide a short background: My application retrieves user

  • 0

Please bear with me while I provide a short background:

  1. My application retrieves user data from Facebook and LinkeIn.
  2. Both have very strict terms of use. Specifically, they do not
    allow to save user data on my application
    (well, kind-of.
    Facebook allows caching. Linked does not allow even caching).
  3. The naive solution is to call Facebook/LinkedIn whenever I need the
    data from them. The problem is that this becomes too slow if I need
    lots of data (e.g. profiles of 100 users). Batch calls make things
    better, but they have limits and I’m not sure this approach can
    scale.

So the question is how to make my application run fast while using data from Facebook/LinkedIn?

If you can share from your experience, or have an example for a site that uses lots of data from Facebook/LinkedIn I’d love to hear.

  • 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-09T16:50:47+00:00Added an answer on June 9, 2026 at 4:50 pm

    When you talk about making your application “fast”, please note “fast” can mean either “high throughput” or “low latency”, and there is a big difference between the two. It would be good to set performance goals for both latency (how quickly each individual user should be served) and throughput (how many users you should be able to serve per unit time).

    If getting data from FB/LinkedIn is a bottleneck for throughput,

    1. Use batched requests.
    2. If the same data can be used repeatedly, cache as much of it as you can and for as long as you can.
    3. Make sure your application is able to issue many requests in parallel. Since sending a query over the network is a high-latency operation, you can gain a LOT of throughput this way.

    If getting data from FB/LinkedIn is a bottleneck for latency,

    1. Again, cache as much data as you can locally.
    2. If it is possible to “guess” which data will be needed soon, pre-fetch it. (For example: if your user has to fill out a big form and then submit, but there is a critical field in that form which identifies the data you will need, you could use AJAX to make the page send that field back as soon as it is filled in, rather than waiting for the whole form to be submitted!)
    3. If you need multiple pieces of data to service a single user, DON’T fetch them with multiple sequential requests — either use a batched request, or multiple parallel requests (perhaps both).
    4. When it is necessary to make the user wait, “distract” them — do whatever you can to make the wait seem shorter.
    5. If there are certain parts of a page which can be rendered without FB/LinkedIn data, send those parts back first, and use AJAX calls to fill in the other parts when the data is ready.

    If you absolutely must have data XYZ from FB/LinkedIn to serve a user, and the latency of a single API request is N seconds, and your target maximum time to serve each user is < N seconds, the only possible way you can reach your goal is by prefetching data. Maybe when you see the very first page request come in for a user (say for the home page), you can start loading all the data which will be needed for that user into the cache (if it’s not already there).

    Whatever you do, I recommend that you encapsulate your FB/LinkedIn data access code inside a “data access layer”. Caching should happen strictly inside the data access layer — the application code doesn’t need to know about the cache. Whether you use batched calls or not, and whether you issue multiple calls in parallel is also an implementation details which should be kept strictly inside the data access layer.

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

Sidebar

Related Questions

I'm new to both WCF and threading, so please bear with me. I have
I'm new to iPad development so please bear with me. I have an iPad
I am new to CSS, so please bear with me. I have this form
I'm coming from C# and very new at this so please bear with me.
This might be slightly confusing, so please bear with me for a moment while
I'm not good with PHP, so please bear with me. I have the following
I am both new here and in IOS programming, so please bear with my
First of all, please bear with me, I have minimal experience with SQLite. I
I'm probably misusing bindable variables here, so please bear with me here while I
Please bear with me as I am new to dojo, javascript, and web programming

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.