Techniques to avoid DeadlineExceededException in GAE/J?
- by Tahir Akram
I am developing an Twitter4J web application in Google App Engine/Java.
I need to show two lists. One is Twitter friends and other is followers. With photo and screen name.
It is working fine for people who have 20-30 followers and friends. But it gave me DeadlineExceededException when I try a user who has 150+ followers and friends.
GAE throws this exception if web request take time more than 30 seconds.
So what techniques I can adopt to avoid this exception.
Should I generate two AJAX calls for each of my list. After page loads. So that every call will have its own 30 secs limit?
Or what else you think? I am gone make it.
Please help.