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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:38:24+00:00 2026-05-11T17:38:24+00:00

I’m building a site with django that lets users move content around between a

  • 0

I’m building a site with django that lets users move content around between a bunch of photo services. As you can imagine the application does a lot of API hits.

For example: user connects Picasa, Flickr, Photobucket, and Facebook to their account. Now we need to pull content from 4 different APIs to keep this users data up to date.

right now I have a a function that updates each API and I run them all simultaneously via threading. (all the API’s that are not enabled return false on the second line, no it’s not much overhead to run them all).

Here is my question:

What is the best strategy for keeping content up to date using these APIs?

I have two ideas that might work:

  1. Update the apis periodically (like a cron job) and whatever we have at the time is what the user gets.

benefits:

  • It’s easy and simple to implement.
  • We’ll always have pretty good data when a user loads their first page.

pitfalls:

  • we have to do api hits all the time for users that are not active, which wastes a lot of bandwidth
  • It will probably make the api providers unhappy
  1. Trigger the updates when the user logs in (on a pageload)

benefits:

  • we save a bunch of bandwidth and run less risk of pissing off the api providers
  • doesn’t require NEARLY the amount of resources on our servers

pitfalls:

  • we either have to do the update asynchronously (and won’t have
    anything on first login) or…
  • the first page will take a very long time to load because we’re
    getting all the api data (I’ve measured 26 seconds this way)

edit: the design is very light, the design has only two images, an external css file, and two external javascript files.

Also, the 26 seconds number comes from the firebug network monitor running on a machine which was on the same LAN as the server

  • 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-11T17:38:25+00:00Added an answer on May 11, 2026 at 5:38 pm

    Personally, I would opt for the second method you mention. The first time you log in, you can query each of the services asynchronously, showing the user some kind of activity/status bar while the processes are running. You can then populate the page as you get the results back from each of the services.

    You can then cache the results of those calls per user so that you don’t have to call the apis each time.

    That lightens the load on your servers, loads your page fast, and provides the user with some indication of activity (along with incrimental updates to the page as their content loads). I think those add up to the best User Experience you can provide.

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

Sidebar

Ask A Question

Stats

  • Questions 191k
  • Answers 191k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Uploading files with Ajax isn't possible due to security reasons.… May 12, 2026 at 6:16 pm
  • Editorial Team
    Editorial Team added an answer Probably the easiest way is to use UDP to periodically… May 12, 2026 at 6:16 pm
  • Editorial Team
    Editorial Team added an answer It does have such a method (in 4.7), although it… May 12, 2026 at 6:16 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.