Multiple API requests slowing down application

0 views
Skip to first unread message

Archit Verma via StackOverflow

unread,
Dec 15, 2014, 9:58:17 AM12/15/14
to google-appengin...@googlegroups.com

I am trying to make a news feed kind of application. The problem is I have to make multiple http requests to generate the news feed which slows it down. The three API requests that I am making are following:

  1. Get all the people that a user is following
  2. Get id's of the recent 300 activities for a user
  3. Get details of an activity using activity id

The problem is I have to make request #2 and #3 for each user and each activity respectively.This is taking 10-15 minutes to generate a news feed for a user with only 25 followers. How can I optimize it?

PS: I am using Google App Engine with Python along with datastore for my backend.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/27486774/multiple-api-requests-slowing-down-application
Reply all
Reply to author
Forward
0 new messages